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 | 7828331329a85cd872117ed482689599dee2322d (patch) | |
| tree | 91cfe00f027a00c9ebc642b09ae409b53fc3b517 /llvm/test | |
| parent | 15fd6ac4ba75d161d008e4e44bcdbcb6f528dd93 (diff) | |
| download | bcm5719-llvm-7828331329a85cd872117ed482689599dee2322d.tar.gz bcm5719-llvm-7828331329a85cd872117ed482689599dee2322d.zip | |
[mips] Set flag isAsCheapAsAMove flag on instruction LUi.
llvm-svn: 167345
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Mips/remat-immed-load.ll | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/remat-immed-load.ll b/llvm/test/CodeGen/Mips/remat-immed-load.ll index e4548f8ce29..d93964bcaef 100644 --- a/llvm/test/CodeGen/Mips/remat-immed-load.ll +++ b/llvm/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) + |

