Provide a test case for rl259798
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 4 Feb 2016 22:36:10 +0000 (22:36 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 4 Feb 2016 22:36:10 +0000 (22:36 +0000)
llvm-svn: 259835

llvm/test/CodeGen/PowerPC/inline-asm-s-modifier.ll [new file with mode: 0644]

diff --git a/llvm/test/CodeGen/PowerPC/inline-asm-s-modifier.ll b/llvm/test/CodeGen/PowerPC/inline-asm-s-modifier.ll
new file mode 100644 (file)
index 0000000..c8b00b6
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llc -mcpu=pwr7 -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
+define void @test() {
+entry:
+  call void asm sideeffect "mtfsb1 ${0:s}", "i"(i32 7), !srcloc !1
+  ret void
+}
+; CHECK: #APP
+; CHECK-NEXT: mtfsb1 25
+
+!1 = !{i32 40}