mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
adjust for signedness change. I'd appreciate it if an ARM flavored person
could look at this: the top undefined bits of an immediate shouldn't affect isel (cmp vs cmp.w) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cada5c5937
commit
94d1077d99
@ -19,7 +19,7 @@ define i1 @f2(i32 %a) {
|
|||||||
; 0xcc00cc00 = 3422604288
|
; 0xcc00cc00 = 3422604288
|
||||||
define i1 @f3(i32 %a) {
|
define i1 @f3(i32 %a) {
|
||||||
; CHECK: f3:
|
; CHECK: f3:
|
||||||
; CHECK: cmp.w r0, #3422604288
|
; CHECK: cmp r0, #-872363008
|
||||||
%tmp = icmp ne i32 %a, 3422604288
|
%tmp = icmp ne i32 %a, 3422604288
|
||||||
ret i1 %tmp
|
ret i1 %tmp
|
||||||
}
|
}
|
||||||
@ -27,7 +27,7 @@ define i1 @f3(i32 %a) {
|
|||||||
; 0xdddddddd = 3722304989
|
; 0xdddddddd = 3722304989
|
||||||
define i1 @f4(i32 %a) {
|
define i1 @f4(i32 %a) {
|
||||||
; CHECK: f4:
|
; CHECK: f4:
|
||||||
; CHECK: cmp.w r0, #3722304989
|
; CHECK: cmp r0, #-572662307
|
||||||
%tmp = icmp ne i32 %a, 3722304989
|
%tmp = icmp ne i32 %a, 3722304989
|
||||||
ret i1 %tmp
|
ret i1 %tmp
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user