mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Test Case for PR1080.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
520071af0a
commit
eb0d1d3508
24
test/Assembler/2007-01-05-Cmp-ConstExpr.ll
Normal file
24
test/Assembler/2007-01-05-Cmp-ConstExpr.ll
Normal file
@ -0,0 +1,24 @@
|
||||
; Test Case for PR1080
|
||||
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
|
||||
|
||||
%str = internal constant [4 x sbyte] c"-ga\00" ; <[4 x sbyte]*> [#uses=5]
|
||||
|
||||
int %main(int %argc, sbyte** %argv) {
|
||||
entry:
|
||||
%tmp65 = getelementptr sbyte** %argv, int 1 ; <sbyte**> [#uses=1]
|
||||
%tmp66 = load sbyte** %tmp65 ; <sbyte*> [#uses=3]
|
||||
br bool icmp ne (
|
||||
uint sub (
|
||||
uint ptrtoint (
|
||||
sbyte* getelementptr ([4 x sbyte]* %str, int 0, long 1)
|
||||
to uint),
|
||||
uint ptrtoint ([4 x sbyte]* %str to uint)
|
||||
),
|
||||
uint 1),
|
||||
label %exit_1, label %exit_2
|
||||
|
||||
exit_1:
|
||||
ret int 0;
|
||||
exit_2:
|
||||
ret int 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user