| OLD | NEW |
| 1 ; This is a smoke test of random number generator. | 1 ; This is a smoke test of random number generator. |
| 2 ; The random number generators for different randomization passes should be | 2 ; The random number generators for different randomization passes should be |
| 3 ; decoupled. The random number used in one randomization pass should not be | 3 ; decoupled. The random number used in one randomization pass should not be |
| 4 ; influenced by the existence of other randomization passes. | 4 ; influenced by the existence of other randomization passes. |
| 5 | 5 |
| 6 ; REQUIRES: allow_dump, target_X8632 | 6 ; REQUIRES: allow_dump, target_X8632 |
| 7 | 7 |
| 8 ; Command for checking constant blinding (Need to turn off nop-insertion) | 8 ; Command for checking constant blinding (Need to turn off nop-insertion) |
| 9 ; RUN: %p2i --target x8632 -i %s --filetype=obj --disassemble --args -O2 \ | 9 ; RUN: %p2i --target x8632 -i %s --filetype=obj --disassemble --args -O2 \ |
| 10 ; RUN: -sz-seed=1 -randomize-pool-immediates=randomize \ | 10 ; RUN: -sz-seed=1 -randomize-pool-immediates=randomize \ |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 %retval.0 = phi float [ %rbb, %sw.bb ], [ %rbb1, %sw.bb1 ], [ %rbb2, %sw.bb2 ]
, [ %rbb3, %sw.bb3 ], [ %rbb4, %sw.bb4], [ 0.000000e+00, %entry ] | 182 %retval.0 = phi float [ %rbb, %sw.bb ], [ %rbb1, %sw.bb1 ], [ %rbb2, %sw.bb2 ]
, [ %rbb3, %sw.bb3 ], [ %rbb4, %sw.bb4], [ 0.000000e+00, %entry ] |
| 183 ret float %retval.0 | 183 ret float %retval.0 |
| 184 } | 184 } |
| 185 | 185 |
| 186 define internal <4 x i32> @func4(<4 x i32> %a, <4 x i32> %b) { | 186 define internal <4 x i32> @func4(<4 x i32> %a, <4 x i32> %b) { |
| 187 entry: | 187 entry: |
| 188 %res = mul <4 x i32> %a, %b | 188 %res = mul <4 x i32> %a, %b |
| 189 ret <4 x i32> %res | 189 ret <4 x i32> %res |
| 190 | 190 |
| 191 ; REGALLOC-LABEL: func4 | 191 ; REGALLOC-LABEL: func4 |
| 192 ; REGALLOC: movups xmm5,xmm0 | 192 ; REGALLOC: movups xmm3,xmm0 |
| 193 ; REGALLOC-NEXT: pshufd xmm0,xmm0,0x31 | 193 ; REGALLOC-NEXT: pshufd xmm0,xmm0,0x31 |
| 194 ; REGALLOC-NEXT: pshufd xmm4,xmm1,0x31 | 194 ; REGALLOC-NEXT: pshufd xmm4,xmm1,0x31 |
| 195 ; REGALLOC-NEXT: pmuludq xmm5,xmm1 | 195 ; REGALLOC-NEXT: pmuludq xmm3,xmm1 |
| 196 ; REGALLOC-NEXT: pmuludq xmm0,xmm4 | 196 ; REGALLOC-NEXT: pmuludq xmm0,xmm4 |
| 197 ; REGALLOC-NEXT: shufps xmm5,xmm0,0x88 | 197 ; REGALLOC-NEXT: shufps xmm3,xmm0,0x88 |
| 198 ; REGALLOC-NEXT: pshufd xmm5,xmm5,0xd8 | 198 ; REGALLOC-NEXT: pshufd xmm3,xmm3,0xd8 |
| 199 ; REGALLOC-NEXT: movups xmm0,xmm5 | 199 ; REGALLOC-NEXT: movups xmm0,xmm3 |
| 200 ; REGALLOC-NEXT: ret | 200 ; REGALLOC-NEXT: ret |
| 201 } | 201 } |
| 202 | 202 |
| 203 define internal void @func5(i32 %foo, i32 %bar) { | 203 define internal void @func5(i32 %foo, i32 %bar) { |
| 204 entry: | 204 entry: |
| 205 %r1 = icmp eq i32 %foo, %bar | 205 %r1 = icmp eq i32 %foo, %bar |
| 206 br i1 %r1, label %BB1, label %BB2 | 206 br i1 %r1, label %BB1, label %BB2 |
| 207 BB1: | 207 BB1: |
| 208 %r2 = icmp sgt i32 %foo, %bar | 208 %r2 = icmp sgt i32 %foo, %bar |
| 209 br i1 %r2, label %BB3, label %BB4 | 209 br i1 %r2, label %BB3, label %BB4 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 ; GLOBALVARS-LABEL: ArrayUninit | 249 ; GLOBALVARS-LABEL: ArrayUninit |
| 250 ; GLOBALVARS-LABEL: PrimitiveInitStatic | 250 ; GLOBALVARS-LABEL: PrimitiveInitStatic |
| 251 ; GLOBALVARS-LABEL: ArrayUninitConstDouble | 251 ; GLOBALVARS-LABEL: ArrayUninitConstDouble |
| 252 ; GLOBALVARS-LABEL: ArrayUninitConstInt | 252 ; GLOBALVARS-LABEL: ArrayUninitConstInt |
| 253 ; GLOBALVARS-LABEL: PrimitiveInitConst | 253 ; GLOBALVARS-LABEL: PrimitiveInitConst |
| 254 | 254 |
| 255 ; Check for pooled constant reordering | 255 ; Check for pooled constant reordering |
| 256 ; POOLEDCONSTANTS-LABEL: .rodata.cst4 | 256 ; POOLEDCONSTANTS-LABEL: .rodata.cst4 |
| 257 ; POOLEDCONSTANTS: 0000803e 0000803f 00000000 0000003f | 257 ; POOLEDCONSTANTS: 0000803e 0000803f 00000000 0000003f |
| 258 ; POOLEDCONSTANTS: 00008040 00000040 | 258 ; POOLEDCONSTANTS: 00008040 00000040 |
| OLD | NEW |