diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-07-10 19:32:38 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-07-10 19:32:38 +0000 |
commit | 7172a596319b178a0ed8585ff51f85e6158a261a (patch) | |
tree | 567f83f47c709ed5ee7dde1c1850067e7b146fbf | |
parent | 6781cd2bf3a210d1704e9441130dfa54faabcf8e (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7150 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/Generic/2003-07-07-BadLongConst.ll | 22 | ||||
-rw-r--r-- | test/LLC/2003-07-07-BadLongConst.ll | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2003-07-07-BadLongConst.ll b/test/CodeGen/Generic/2003-07-07-BadLongConst.ll new file mode 100644 index 0000000000..07908f0d59 --- /dev/null +++ b/test/CodeGen/Generic/2003-07-07-BadLongConst.ll @@ -0,0 +1,22 @@ +target endian = big +target pointersize = 64 + +%.str_1 = internal constant [42 x sbyte] c" ui = %u (0x%x)\09\09UL-ui = %lld (0x%llx)\0A\00" + +implementation ; Functions: + +declare int %printf(sbyte*, ...) + +internal ulong %getL() { +entry: ; No predecessors! + ret ulong 12659530247033960611 +} + +int %main(int %argc.1, sbyte** %argv.1) { +entry: ; No predecessors! + %tmp.11 = call ulong %getL( ) + %tmp.5 = cast ulong %tmp.11 to uint + %tmp.23 = and ulong %tmp.11, 18446744069414584320 + %tmp.16 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([42 x sbyte]* %.str_1, long 0, long 0), uint %tmp.5, uint %tmp.5, ulong %tmp.23, ulong %tmp.23 ) + ret int 0 +} diff --git a/test/LLC/2003-07-07-BadLongConst.ll b/test/LLC/2003-07-07-BadLongConst.ll new file mode 100644 index 0000000000..07908f0d59 --- /dev/null +++ b/test/LLC/2003-07-07-BadLongConst.ll @@ -0,0 +1,22 @@ +target endian = big +target pointersize = 64 + +%.str_1 = internal constant [42 x sbyte] c" ui = %u (0x%x)\09\09UL-ui = %lld (0x%llx)\0A\00" + +implementation ; Functions: + +declare int %printf(sbyte*, ...) + +internal ulong %getL() { +entry: ; No predecessors! + ret ulong 12659530247033960611 +} + +int %main(int %argc.1, sbyte** %argv.1) { +entry: ; No predecessors! + %tmp.11 = call ulong %getL( ) + %tmp.5 = cast ulong %tmp.11 to uint + %tmp.23 = and ulong %tmp.11, 18446744069414584320 + %tmp.16 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([42 x sbyte]* %.str_1, long 0, long 0), uint %tmp.5, uint %tmp.5, ulong %tmp.23, ulong %tmp.23 ) + ret int 0 +} |