Fangrui Song cfc1a87878 [test] Change llc -march= to -mtriple= & llvm-mc -arch= to -triple=
Similar to 806761a7629df268c8aed49657aeccffa6bca449
2023-09-11 15:11:01 -07:00

29 lines
465 B
LLVM

; RUN: llc < %s -mtriple=lanai | FileCheck %s
; Test lowering of shifts.
define i32 @irs(i32 inreg %a) #0 {
entry:
%shr = ashr i32 %a, 13
ret i32 %shr
}
; CHECK-LABEL: irs
; CHECK: sha %r6, -0xd, %rv
define i32 @urs(i32 inreg %a) #0 {
entry:
%shr = lshr i32 %a, 13
ret i32 %shr
}
; CHECK-LABEL: urs
; CHECK: sh %r6, -0xd, %rv
define i32 @ls(i32 inreg %a) #0 {
entry:
%shl = shl i32 %a, 13
ret i32 %shl
}
; CHECK-LABEL: ls
; CHECK: sh %r6, 0xd, %rv