summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AArch64/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/ARM/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/PowerPC/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/RISCV/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/SPARC/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/SystemZ/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/Thumb/inline-asm-i-constraint-i1.ll14
-rw-r--r--llvm/test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll14
9 files changed, 126 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/AArch64/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..7a18963ff49
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "aarch64-unknown-linux-gnu"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/ARM/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/ARM/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..79345b9f984
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=armv7-unknown-linux-gnueabi < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "armv7-unknown-linux-gnueabi"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..598b20f5467
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=mips64el-unknown-linux-gnu < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "mips64el-unknown-linux-gnu"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/PowerPC/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/PowerPC/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..9f602653c2c
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "powerpc64le-unknown-linux-gnu"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/RISCV/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/RISCV/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..fca1a185d86
--- /dev/null
+++ b/llvm/test/CodeGen/RISCV/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=riscv64-unknown-linux-gnu < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "riscv64-unknown-linux-gnu"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/SPARC/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/SPARC/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..d6d0ebac657
--- /dev/null
+++ b/llvm/test/CodeGen/SPARC/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=sparc64-unknown-linux-gnu < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "sparc64-unknown-linux-gnu"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/SystemZ/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/SystemZ/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..498dbee48f3
--- /dev/null
+++ b/llvm/test/CodeGen/SystemZ/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=s390x-linux-gnu < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "s390x-linux-gnu"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/Thumb/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/Thumb/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..e6f1403d22b
--- /dev/null
+++ b/llvm/test/CodeGen/Thumb/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "thumbv7-linux-gnueabi"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
diff --git a/llvm/test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll
new file mode 100644
index 00000000000..fb28915b24c
--- /dev/null
+++ b/llvm/test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=thumbv8-none-linux-gnueabi < %s | FileCheck %s
+
+; Make sure that boolean immediates are properly (zero) extended.
+; CHECK: TEST 42 + 1 - .
+
+target triple = "thumbv8-none-linux-gnueabi"
+
+define i32 @foo() #0 {
+entry:
+ tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0
+ ret i32 1
+}
+
+attributes #0 = { nounwind }
OpenPOWER on IntegriCloud