Skip to content

Commit 21a5923

Browse files
committed
Add testcase that should have been added to 56b7b08.
The test is testing the handling of vector registers and is thus restricted to x86_64. rdar://problem/27891980 (cherry picked from commit 4a85b83)
1 parent ce478a5 commit 21a5923

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: %target-swift-frontend %s -g -emit-ir -o - | %FileCheck %s
2+
// REQUIRES: objc_interop, CPU=x86_64
3+
import simd
4+
5+
func use<T>(_ x: T) {}
6+
7+
func getInt32() -> Int32 { return -1 }
8+
9+
public func rangeExtension(x: Int32, y: Int32) {
10+
let p = int2(x, y)
11+
// CHECK: define {{.*}}rangeExtension
12+
// CHECK: llvm.dbg.value(metadata <2 x i32> %[[P:.*]], i64 0, metadata
13+
use(p)
14+
// CHECK: asm sideeffect "", "r"{{.*}}[[P]]
15+
}

0 commit comments

Comments
 (0)