diff options
Diffstat (limited to 'test/CodeGen/SPARC/parts.ll')
-rw-r--r-- | test/CodeGen/SPARC/parts.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/parts.ll b/test/CodeGen/SPARC/parts.ll new file mode 100644 index 0000000000..57add4948e --- /dev/null +++ b/test/CodeGen/SPARC/parts.ll @@ -0,0 +1,14 @@ +; RUN: llc < %s -march=sparcv9 | FileCheck %s + +; CHECK-LABEL: test +; CHECK: srl %i1, 0, %o2 +; CHECK-NEXT: or %g0, %i2, %o0 +; CHECK-NEXT: call __ashlti3 +; CHECK-NEXT: or %g0, %i3, %o1 +; CHECK-NEXT: or %g0, %o0, %i0 + +define i128 @test(i128 %a, i128 %b) { +entry: + %tmp = shl i128 %b, %a + ret i128 %tmp +} |