summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-19 01:41:04 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-19 01:41:04 +0000
commit3f04773f7884c1c7b8b89dddfb177b1f41f54c56 (patch)
tree8c66730e481d8ce70c0a8e082bfdbadc0badcc4b /llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
parent22011e90c992533411d2efc17f5efd365a636117 (diff)
downloadbcm5719-llvm-3f04773f7884c1c7b8b89dddfb177b1f41f54c56.tar.gz
bcm5719-llvm-3f04773f7884c1c7b8b89dddfb177b1f41f54c56.zip
Remove llvm-upgrade and update tests.
llvm-svn: 47296
Diffstat (limited to 'llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll')
-rw-r--r--llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll b/llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
index ef1359ee7cd..bd2e043c96f 100644
--- a/llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
+++ b/llvm/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
@@ -1,7 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc
+; RUN: llvm-as < %s | llc
-long %test(long %A) {
- %B = cast long %A to sbyte
- %C = cast sbyte %B to long
- ret long %C
+define i64 @test(i64 %A) {
+ %B = trunc i64 %A to i8 ; <i8> [#uses=1]
+ %C = sext i8 %B to i64 ; <i64> [#uses=1]
+ ret i64 %C
}
OpenPOWER on IntegriCloud