r318797 - Avoid unecessary opsize byte in segment move to memory
Nirav Dave via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 21 11:28:13 PST 2017
Author: niravd
Date: Tue Nov 21 11:28:13 2017
New Revision: 318797
URL: http://llvm.org/viewvc/llvm-project?rev=318797&view=rev
Log:
Avoid unecessary opsize byte in segment move to memory
Segment moves to memory are always 16-bit. Remove invalid 32 and 64
bit variants.
Recommiting with missing clang inline assembly test change.
Fixes PR34478.
Reviewers: rnk, craig.topper
Subscribers: llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D39847
Modified:
cfe/trunk/test/CodeGen/ms-inline-asm.c
Modified: cfe/trunk/test/CodeGen/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm.c?rev=318797&r1=318796&r2=318797&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm.c (original)
+++ cfe/trunk/test/CodeGen/ms-inline-asm.c Tue Nov 21 11:28:13 2017
@@ -577,17 +577,17 @@ void t40(float a) {
void t41(unsigned short a) {
// CHECK-LABEL: define void @t41(i16 zeroext %a)
__asm mov cs, a;
-// CHECK: mov cs, word ptr $0
+// CHECK: mov cs, $0
__asm mov ds, a;
-// CHECK: mov ds, word ptr $1
+// CHECK: mov ds, $1
__asm mov es, a;
-// CHECK: mov es, word ptr $2
+// CHECK: mov es, $2
__asm mov fs, a;
-// CHECK: mov fs, word ptr $3
+// CHECK: mov fs, $3
__asm mov gs, a;
-// CHECK: mov gs, word ptr $4
+// CHECK: mov gs, $4
__asm mov ss, a;
-// CHECK: mov ss, word ptr $5
+// CHECK: mov ss, $5
// CHECK: "*m,*m,*m,*m,*m,*m,~{dirflag},~{fpsr},~{flags}"(i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}}, i16* {{.*}})
}
More information about the cfe-commits
mailing list