diff options
Diffstat (limited to 'test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll')
-rw-r--r-- | test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll b/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll index ef1359e..bd2e043 100644 --- a/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll +++ b/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 } |