Skip to content

Commit c82c40d

Browse files
committed
Writing SIL tests is hard
1 parent 8dcf652 commit c82c40d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/IRGen/assume.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil-parse-stdlib -O -emit-ir %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -O -emit-ir %s | %FileCheck %s
22
sil_stage canonical
33

44
import Swift
@@ -11,16 +11,16 @@ import Builtin
1111
// CHECK: ret i64 [[RES]]
1212
// CHECK: }
1313

14-
sil @test_assume : $@convention(thin) (Int) -> Int {
15-
bb0(%0 : $Int):
14+
sil @test_assume : $@convention(thin) (Int64) -> Int64 {
15+
bb0(%0 : $Int64):
1616
%2 = integer_literal $Builtin.Int64, 0
17-
%3 = struct_extract %0 : $Int, #Int._value
17+
%3 = struct_extract %0 : $Int64, #Int64._value
1818
%4 = builtin "cmp_slt_Int64"(%3 : $Builtin.Int64, %2 : $Builtin.Int64) : $Builtin.Int1
1919
%5 = integer_literal $Builtin.Int1, -1
2020
%6 = builtin "xor_Int1"(%4 : $Builtin.Int1, %5 : $Builtin.Int1) : $Builtin.Int1
2121
%7 = builtin "assume_Int1"(%6 : $Builtin.Int1) : $Builtin.Int1
2222
%8 = integer_literal $Builtin.Int64, 64
2323
%9 = builtin "sdiv_Int64"(%3 : $Builtin.Int64, %8 : $Builtin.Int64) : $Builtin.Int64
24-
%10 = struct $Int (%9 : $Builtin.Int64)
25-
return %10 : $Int
24+
%10 = struct $Int64 (%9 : $Builtin.Int64)
25+
return %10 : $Int64
2626
}

0 commit comments

Comments
 (0)