mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
For immediate encodings of icmp, zero or sign extend first. Then
determine if the value is negative and flip the sign accordingly. rdar://10422026 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -212,3 +212,20 @@ if.then: ; preds = %entry
|
||||
if.end: ; preds = %if.then, %entry
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @t12(i8 %a) uwtable ssp {
|
||||
entry:
|
||||
; ARM: t12
|
||||
; THUMB: t12
|
||||
%cmp = icmp ugt i8 %a, -113
|
||||
; ARM: cmp r{{[0-9]}}, #143
|
||||
; THUMB: cmp r{{[0-9]}}, #143
|
||||
br i1 %cmp, label %if.then, label %if.end
|
||||
|
||||
if.then: ; preds = %entry
|
||||
tail call void @foo()
|
||||
br label %if.end
|
||||
|
||||
if.end: ; preds = %if.then, %entry
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user