diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-11-03 00:26:02 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-11-03 00:26:02 +0000 |
commit | 3c9c1ab7b7549dfaf22456d89bd241a5e8dfc0a4 (patch) | |
tree | fb7b5638a6eb37c0b6dfc0626e7588cbc0632532 /test/CodeGen | |
parent | efcc1aec6459c356c6516e28be29acaa51e876fa (diff) | |
download | external_llvm-3c9c1ab7b7549dfaf22456d89bd241a5e8dfc0a4.zip external_llvm-3c9c1ab7b7549dfaf22456d89bd241a5e8dfc0a4.tar.gz external_llvm-3c9c1ab7b7549dfaf22456d89bd241a5e8dfc0a4.tar.bz2 |
[mips] Set flag isAsCheapAsAMove flag on instruction LUi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/Mips/remat-immed-load.ll | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/remat-immed-load.ll b/test/CodeGen/Mips/remat-immed-load.ll index e4548f8..d93964b 100644 --- a/test/CodeGen/Mips/remat-immed-load.ll +++ b/test/CodeGen/Mips/remat-immed-load.ll @@ -24,3 +24,28 @@ entry: } declare void @foo2(i64) + +define void @f5() nounwind { +entry: +; 32: lui $4, 1 +; 32: lui $4, 1 + + tail call void @f6(i32 65536) nounwind + tail call void @f6(i32 65536) nounwind + ret void +} + +declare void @f6(i32) + +define void @f7() nounwind { +entry: +; 64: lui $4, 1 +; 64: lui $4, 1 + + tail call void @f8(i64 65536) nounwind + tail call void @f8(i64 65536) nounwind + ret void +} + +declare void @f8(i64) + |