diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-01 17:57:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-01 17:57:10 +0000 |
commit | fc0fb70c0b544289b42dca02097b0452e98a5353 (patch) | |
tree | 68cf8e6376c72f222d72c74cd60a19bfab1a9ce3 /LLVMSource | |
parent | d7d0d59315c226536cf419e2803714626e831859 (diff) |
Moved test
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@7038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'LLVMSource')
-rw-r--r-- | LLVMSource/2002-02-12-setuw-setsw.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LLVMSource/2002-02-12-setuw-setsw.ll b/LLVMSource/2002-02-12-setuw-setsw.ll new file mode 100644 index 00000000..f07c3516 --- /dev/null +++ b/LLVMSource/2002-02-12-setuw-setsw.ll @@ -0,0 +1,15 @@ +; The sparc back-end is generating set-unsigned (setuw) for -2, when it +; should be using setsw. + +implementation + +int %main(int %argc, sbyte * * %argv) { + %T1 = cast int 2 to uint + %tmp = add uint %T1, 4294967294 ; == -2 + %cond = seteq uint %tmp, 0 + br bool %cond, label %Ok, label %Fail +Ok: + ret int 0 +Fail: + ret int 1 +} |