Test case for r177347.

llvm-svn: 177349
This commit is contained in:
Chad Rosier 2013-03-18 23:32:33 +00:00
parent bc421efddf
commit 47abcf83a3
1 changed files with 13 additions and 0 deletions

View File

@ -357,4 +357,17 @@ void t31() {
// CHECK: call void asm sideeffect inteldialect "popad", "~{dirflag},~{fpsr},~{flags}"() [[NUW]]
}
void t32() {
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: t32
// 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 }