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

Side by Side Diff: tests_lit/llvm2ice_tests/reorder-pooled-constants.ll

Issue 1439363002: Subzero: Use "pxor reg,reg" to load a floating-point scalar 0.0 value. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | tests_lit/llvm2ice_tests/rng.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This is a smoke test for reordering pooled constants. 1 ; This is a smoke test for reordering pooled constants.
2 ; This option is only implemented for target X8632 for now. 2 ; This option is only implemented for target X8632 for now.
3 3
4 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ 4 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \
5 ; RUN: --target x8632 -i %s --args -sz-seed=1 -O2 -reorder-pooled-constants \ 5 ; RUN: --target x8632 -i %s --args -sz-seed=1 -O2 -reorder-pooled-constants \
6 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86 6 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86
7 7
8 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ 8 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \
9 ; RUN: --target x8632 -i %s --args -sz-seed=1 -Om1 -reorder-pooled-constants \ 9 ; RUN: --target x8632 -i %s --args -sz-seed=1 -Om1 -reorder-pooled-constants \
10 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86 10 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 return: ; preds = %entry, %sw.bb65, %s w.bb61, %sw.bb57, %sw.bb53, %sw.bb49, %sw.bb45, %sw.bb41, %sw.bb37, %sw.bb33, %s w.bb29, %sw.bb25, %sw.bb21, %sw.bb17, %sw.bb13, %sw.bb9, %sw.bb5, %sw.bb1, %sw.b b 530 return: ; preds = %entry, %sw.bb65, %s w.bb61, %sw.bb57, %sw.bb53, %sw.bb49, %sw.bb45, %sw.bb41, %sw.bb37, %sw.bb33, %s w.bb29, %sw.bb25, %sw.bb21, %sw.bb17, %sw.bb13, %sw.bb9, %sw.bb5, %sw.bb1, %sw.b b
531 %retval.0 = phi double [ %add68, %sw.bb65 ], [ %add64, %sw.bb61 ], [ %add60, % sw.bb57 ], [ %add56, %sw.bb53 ], [ %add52, %sw.bb49 ], [ %conv48, %sw.bb45 ], [ %conv44, %sw.bb41 ], [ %conv40, %sw.bb37 ], [ %conv36, %sw.bb33 ], [ %add32, %sw .bb29 ], [ %add28, %sw.bb25 ], [ %add24, %sw.bb21 ], [ %add20, %sw.bb17 ], [ %ad d16, %sw.bb13 ], [ %conv12, %sw.bb9 ], [ %conv8, %sw.bb5 ], [ %conv4, %sw.bb1 ], [ %conv, %sw.bb ], [ 0.000000e+00, %entry ] 531 %retval.0 = phi double [ %add68, %sw.bb65 ], [ %add64, %sw.bb61 ], [ %add60, % sw.bb57 ], [ %add56, %sw.bb53 ], [ %add52, %sw.bb49 ], [ %conv48, %sw.bb45 ], [ %conv44, %sw.bb41 ], [ %conv40, %sw.bb37 ], [ %conv36, %sw.bb33 ], [ %add32, %sw .bb29 ], [ %add28, %sw.bb25 ], [ %add24, %sw.bb21 ], [ %add20, %sw.bb17 ], [ %ad d16, %sw.bb13 ], [ %conv12, %sw.bb9 ], [ %conv8, %sw.bb5 ], [ %conv4, %sw.bb1 ], [ %conv, %sw.bb ], [ 0.000000e+00, %entry ]
532 ret double %retval.0 532 ret double %retval.0
533 } 533 }
534 534
535 ; Make sure the constants in pools are shuffled. 535 ; Make sure the constants in pools are shuffled.
536 536
537 ; Check for float pool 537 ; Check for float pool
538 ; X86-LABEL: .rodata.cst4 538 ; X86-LABEL: .rodata.cst4
539 ; X86: 00000041 0000c0ff 0000803f 00008040 539 ; X86: 00000041 0000c0ff 0000803f 00008040
540 ; X86: 0000c07f 00000000 0000003f 0000803e 540 ; X86: 0000c07f 0000003f 0000803e 00000040
541 ; X86: 00000040
542 541
543 ; Check for double pool 542 ; Check for double pool
544 ; X86-LABEL: .rodata.cst8 543 ; X86-LABEL: .rodata.cst8
545 ; X86: 00000000 0000f8ff 00000000 0000f87f 544 ; X86: 00000000 0000f8ff 00000000 0000f87f
546 ; X86: 00000000 0000e03f 00000000 00000000 545 ; X86: 00000000 0000e03f 55555555 5555d53f
547 ; X86: 55555555 5555d53f 00000000 0000d03f 546 ; X86: 00000000 0000d03f
548 547
549 ; X86-LABEL: .text 548 ; X86-LABEL: .text
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | tests_lit/llvm2ice_tests/rng.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698