Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: tests_lit/assembler/mips32/encoding_test_arith_fp.ll

Issue 2446273003: [SubZero] Generate relocations for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTypes.def ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/mips32/encoding_test_arith_fp.ll
diff --git a/tests_lit/assembler/mips32/encoding_test_arith_fp.ll b/tests_lit/assembler/mips32/encoding_test_arith_fp.ll
index c29dc2230e67b6eb93b3f3bddde51fff4263b992..0654a2e25e1f0a4c05d6d3b1f418d5f082382f06 100644
--- a/tests_lit/assembler/mips32/encoding_test_arith_fp.ll
+++ b/tests_lit/assembler/mips32/encoding_test_arith_fp.ll
@@ -470,3 +470,53 @@ entry:
; IASM-NEXT: .byte 0x0
; IASM-NEXT: .byte 0x0
; IASM-NEXT: .byte 0x0
+
+define internal i64 @cast_d2ll_const() {
+entry:
+ %v0 = bitcast double 0x12345678901234 to i64
+ ret i64 %v0
+}
+; ASM-LABEL: cast_d2ll_const
+; ASM-LABEL: .Lcast_d2ll_const$entry:
+; ASM-NEXT: lui $[[REG:.*]], %hi({{.*}})
+; ASM-NEXT: ldc1 $[[FREG:.*]], %lo({{.*}})($[[REG]])
+
+; DIS-LABEL: 000000c0 <cast_d2ll_const>:
+; DIS-NEXT: c0: 3c020000 lui v0,0x0
+; DIS-NEXT: c4: d4400000 ldc1 $f0,0(v0)
+
+; IASM-LABEL: cast_d2ll_const:
+; IASM-LABEL: .Lcast_d2ll_const$entry:
+; IASM-NEXT: .word 0x3c020000 # R_MIPS_HI16 [[LAB:.*]]
+; IASM-NEXT: .word 0xd4400000 # R_MIPS_LO16 [[LAB]]
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x8
+; IASM-NEXT: .byte 0x3
+; IASM-NEXT: .byte 0x44
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x2
+; IASM-NEXT: .byte 0x44
+; IASM-NEXT: .byte 0x8
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0xe0
+; IASM-NEXT: .byte 0x3
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x0
+
+
+declare void @bar(i32 %a1, i32 %a2)
+define internal void @Call() {
+ call void @bar(i32 1, i32 2)
+ ret void
+}
+; ASM-LABEL: Call
+; ASM: jal bar
+
+; DIS-LABEL: 000000e0 <Call>:
+; DIS: f0: 0c000000 jal 0
+
+; IASM-LABEL: Call:
+; IASM: .word 0xc000000 # R_MIPS_26 bar
« no previous file with comments | « src/IceTypes.def ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698