mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Add a test case for r146900.
llvm-svn: 146901
This commit is contained in:
parent
e54da3bfa2
commit
7ef923c1f0
38
test/CodeGen/Mips/imm.ll
Normal file
38
test/CodeGen/Mips/imm.ll
Normal file
@ -0,0 +1,38 @@
|
||||
; RUN: llc -march=mipsel < %s | FileCheck %s
|
||||
|
||||
define i32 @foo0() nounwind readnone {
|
||||
entry:
|
||||
; CHECK: foo0
|
||||
; CHECK: lui $[[R0:[0-9]+]], 4660
|
||||
; CHECK: ori ${{[0-9]+}}, $[[R0]], 22136
|
||||
ret i32 305419896
|
||||
}
|
||||
|
||||
define i32 @foo1() nounwind readnone {
|
||||
entry:
|
||||
; CHECK: foo1
|
||||
; CHECK: lui ${{[0-9]+}}, 4660
|
||||
; CHECK-NOT: ori
|
||||
ret i32 305397760
|
||||
}
|
||||
|
||||
define i32 @foo2() nounwind readnone {
|
||||
entry:
|
||||
; CHECK: foo2
|
||||
; CHECK: addiu ${{[0-9]+}}, $zero, 4660
|
||||
ret i32 4660
|
||||
}
|
||||
|
||||
define i32 @foo17() nounwind readnone {
|
||||
entry:
|
||||
; CHECK: foo17
|
||||
; CHECK: addiu ${{[0-9]+}}, $zero, -32204
|
||||
ret i32 -32204
|
||||
}
|
||||
|
||||
define i32 @foo18() nounwind readnone {
|
||||
entry:
|
||||
; CHECK: foo18
|
||||
; CHECK: ori ${{[0-9]+}}, $zero, 33332
|
||||
ret i32 33332
|
||||
}
|
Loading…
Reference in New Issue
Block a user