Skip to content

Commit

Permalink
[mlir][ArmSVE] Fix test-setArmVLBits.mlir after #83213
Browse files Browse the repository at this point in the history
  • Loading branch information
MacDue committed Feb 29, 2024
1 parent 7e88d51 commit 780d556
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

func.func @checkVScale() {
%vscale = vector.vscale
vector.print str "vscale"
vector.print str "vscale = "
vector.print %vscale : index
return
}
Expand All @@ -20,28 +20,23 @@ func.func @setAndCheckVL(%bits: i32) {
}

func.func @main() {
// CHECK: vscale
// CHECK-NEXT: 1
// CHECK: vscale = 1
%c128 = arith.constant 128 : i32
func.call @setAndCheckVL(%c128) : (i32) -> ()

// CHECK: vscale
// CHECK-NEXT: 2
// CHECK: vscale = 2
%c256 = arith.constant 256 : i32
func.call @setAndCheckVL(%c256) : (i32) -> ()

// CHECK: vscale
// CHECK-NEXT: 4
// CHECK: vscale = 4
%c512 = arith.constant 512 : i32
func.call @setAndCheckVL(%c512) : (i32) -> ()

// CHECK: vscale
// CHECK-NEXT: 8
// CHECK: vscale = 8
%c1024 = arith.constant 1024 : i32
func.call @setAndCheckVL(%c1024) : (i32) -> ()

// CHECK: vscale
// CHECK-NEXT: 16
// CHECK: vscale = 16
%c2048 = arith.constant 2048 : i32
func.call @setAndCheckVL(%c2048) : (i32) -> ()

Expand Down

1 comment on commit 780d556

@aartbik
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.