Skip to content

Commit 79d2fc0

Browse files
committed
update predicates
1 parent 16a1b43 commit 79d2fc0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/Target/X86/X86InstrMisc.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def PUSHA16 : I<0x60, RawFrm, (outs), (ins), "pushaw", []>,
229229
OpSize16, Requires<[Not64BitMode]>;
230230
}
231231

232-
let Constraints = "$src = $dst", SchedRW = [WriteBSWAP32] in {
232+
let Constraints = "$src = $dst", SchedRW = [WriteBSWAP32], Predicates = [NoEGPR] in {
233233
// This instruction is a consequence of BSWAP32r observing operand size. The
234234
// encoding is valid, but the behavior is undefined.
235235
let isCodeGenOnly = 1, ForceDisassemble = 1, hasSideEffects = 0 in

llvm/test/CodeGen/X86/movbe.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ define i64 @test7(i64 %x) nounwind {
182182
;
183183
; EGPR-LABEL: test7:
184184
; EGPR: # %bb.0:
185-
; EGPR-NEXT: movq %rdi, %rax # encoding: [0x48,0x89,0xf8]
186-
; EGPR-NEXT: bswapq %rax # encoding: [0x48,0x0f,0xc8]
185+
; EGPR-NEXT: movbeq %rdi, %rax # encoding: [0x62,0xf4,0xfc,0x08,0x61,0xf8]
187186
; EGPR-NEXT: retq # encoding: [0xc3]
188187
%bswap = call i64 @llvm.bswap.i64(i64 %x)
189188
ret i64 %bswap

0 commit comments

Comments
 (0)