Skip to content

Commit 540619e

Browse files
committed
Merge pull request #2800 from apple/fix-floating-point-ir-test-for-armv7s
2 parents 009f69b + 25cc815 commit 540619e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/1_stdlib/FloatingPointIR.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-build-swift -emit-ir %s | FileCheck -check-prefix=%target-cpu %s
2-
// REQUIRES: executable_test
2+
// RUN: %target-build-swift -O -emit-ir %s | FileCheck -check-prefix=%target-cpu %s
3+
// RUN: %target-build-swift -Ounchecked -emit-ir %s | FileCheck -check-prefix=%target-cpu %s
4+
35
var globalFloat32 : Float32 = 0.0
46
var globalFloat64 : Float64 = 0.0
57
#if arch(i386) || arch(x86_64)
@@ -42,6 +44,9 @@ func testConstantFoldFloatLiterals() {
4244
// armv7: call void @{{.*}}_TF15FloatingPointIR13acceptFloat32FSfT_(float 1.000000e+00)
4345
// armv7: call void @{{.*}}_TF15FloatingPointIR13acceptFloat64FSdT_(double 1.000000e+00)
4446

47+
// armv7s: call void @{{.*}}_TF15FloatingPointIR13acceptFloat32FSfT_(float 1.000000e+00)
48+
// armv7s: call void @{{.*}}_TF15FloatingPointIR13acceptFloat64FSdT_(double 1.000000e+00)
49+
4550
// armv7k: call void @{{.*}}_TF15FloatingPointIR13acceptFloat32FSfT_(float 1.000000e+00)
4651
// armv7k: call void @{{.*}}_TF15FloatingPointIR13acceptFloat64FSdT_(double 1.000000e+00)
4752

0 commit comments

Comments
 (0)