llvm-6502/test/CodeGen/SPARC/parts.ll
2014-02-19 21:35:39 +00:00

15 lines
329 B
LLVM

; 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
}