diff options
author | Jack Carter <jcarter@mips.com> | 2012-08-09 19:43:18 +0000 |
---|---|---|
committer | Jack Carter <jcarter@mips.com> | 2012-08-09 19:43:18 +0000 |
commit | 8d7e5efcaa5a1625e9518d090697f08d6d1110d5 (patch) | |
tree | 501b2d9d475fd38a963efe5451907ec05a31ecda /test | |
parent | bcc4c1d2d1b6877418de92835c537d79d44363a6 (diff) | |
download | external_llvm-8d7e5efcaa5a1625e9518d090697f08d6d1110d5.zip external_llvm-8d7e5efcaa5a1625e9518d090697f08d6d1110d5.tar.gz external_llvm-8d7e5efcaa5a1625e9518d090697f08d6d1110d5.tar.bz2 |
Another 32 to 64 bit sign extension bug.
The fields in the td definition were switched.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Mips/sext_64_32.ll | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/MC/Mips/sext_64_32.ll b/test/MC/Mips/sext_64_32.ll index bc0b5b1..e5c57b8 100644 --- a/test/MC/Mips/sext_64_32.ll +++ b/test/MC/Mips/sext_64_32.ll @@ -4,12 +4,17 @@ ; CHECK: sll ${{[0-9]+}}, ${{[0-9]+}}, 0 -; ModuleID = '../sext.c' -;target datalayout = "e-p:64:64:64-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v64:64:64-n32" -;target triple = "mips64el-unknown-linux" - define i64 @foo(i32 %ival) nounwind readnone { entry: %conv = sext i32 %ival to i64 ret i64 %conv } + +; CHECK: dsll32 ${{[0-9]+}}, ${{[0-9]+}}, 0 + +define i64 @foo_2(i32 %ival_2) nounwind readnone { +entry: + %conv_2 = zext i32 %ival_2 to i64 + ret i64 %conv_2 +} + |