mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Expand 64bit {SHL,SHR,SRA}_PARTS on sparcv9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201718 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
14
test/CodeGen/SPARC/parts.ll
Normal file
14
test/CodeGen/SPARC/parts.ll
Normal file
@@ -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
|
||||
}
|
Reference in New Issue
Block a user