From 220b4fe4a93d9a3a0ea3fe0a716a037fcae1e7c3 Mon Sep 17 00:00:00 2001 From: Nemanja Ivanovic Date: Thu, 4 Feb 2016 22:36:10 +0000 Subject: [PATCH] Provide a test case for rl259798 llvm-svn: 259835 --- llvm/test/CodeGen/PowerPC/inline-asm-s-modifier.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/CodeGen/PowerPC/inline-asm-s-modifier.ll 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 index 0000000..c8b00b6 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/inline-asm-s-modifier.ll @@ -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} -- 2.7.4