[PATCH] D139914: [NFC][PowerPC] Add tests for 64-bit constants that require 5 instructions to materialize.
Esme Yi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 23:46:02 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd4fd2758962c: [NFC][PowerPC] Add tests for 64-bit constants that require 5 instructions to… (authored by Esme).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139914/new/
https://reviews.llvm.org/D139914
Files:
llvm/test/CodeGen/PowerPC/constants-i64.ll
Index: llvm/test/CodeGen/PowerPC/constants-i64.ll
===================================================================
--- llvm/test/CodeGen/PowerPC/constants-i64.ll
+++ llvm/test/CodeGen/PowerPC/constants-i64.ll
@@ -375,4 +375,30 @@
ret i64 11174473921
}
+define i64 @imm19() {
+; CHECK-LABEL: imm19:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: lis 3, -13105
+; CHECK-NEXT: ori 3, 3, 52479
+; CHECK-NEXT: rldic 3, 3, 32, 0
+; CHECK-NEXT: oris 3, 3, 52431
+; CHECK-NEXT: ori 3, 3, 291
+; CHECK-NEXT: blr
+entry:
+ ret i64 14758239902941249827 ;0xCCCFCCFFCCCF0123
+}
+
+define i64 @imm20() {
+; CHECK-LABEL: imm20:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: lis 3, -13057
+; CHECK-NEXT: ori 3, 3, 52479
+; CHECK-NEXT: rldic 3, 3, 32, 0
+; CHECK-NEXT: oris 3, 3, 291
+; CHECK-NEXT: ori 3, 3, 52479
+; CHECK-NEXT: blr
+entry:
+ ret i64 14771750698406366463 ;0xCCFFCCFF0123CCFF
+}
+
attributes #0 = { nounwind readnone }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139914.482373.patch
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221213/61a7f777/attachment.bin>
More information about the llvm-commits
mailing list