Test case for r177439 and r177440.

llvm-svn: 177441
This commit is contained in:
Chad Rosier 2013-03-19 21:12:57 +00:00
parent 17d3799352
commit 993bd120bc
1 changed files with 13 additions and 0 deletions

View File

@ -370,4 +370,17 @@ void t32() {
// CHECK: call void asm sideeffect inteldialect "mov al, byte ptr $0", "*m,~{al},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]]
}
void t33() {
int i;
__asm mov eax, [i]
__asm mov eax, dword ptr [i]
__asm mov ax, word ptr [i]
__asm mov al, byte ptr [i]
// CHECK: t33
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]]
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]]
// CHECK: call void asm sideeffect inteldialect "mov ax, word ptr $0", "*m,~{ax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]]
// CHECK: call void asm sideeffect inteldialect "mov al, byte ptr $0", "*m,~{al},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) [[NUW]]
}
// CHECK: attributes [[NUW]] = { nounwind }