diff options
Diffstat (limited to 'llvm/test/CodeGen/X86')
-rw-r--r-- | llvm/test/CodeGen/X86/coalescer-win64.ll | 16 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/x86-shrink-wrapping.ll | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/coalescer-win64.ll b/llvm/test/CodeGen/X86/coalescer-win64.ll new file mode 100644 index 00000000000..ff084ae5b9e --- /dev/null +++ b/llvm/test/CodeGen/X86/coalescer-win64.ll @@ -0,0 +1,16 @@ +; RUN: llc < %s -verify-coalescing | FileCheck %s +target triple = "x86_64-pc-win32" + +@fnptr = external global void ()* + +define void @test1() { +entry: + %p = load void ()*, void ()** @fnptr + tail call void %p() + ret void +} + +; CHECK-LABEL: test1{{$}} +; CHECK: .seh_proc test1{{$}} +; CHECK: rex64 jmpq *fnptr(%rip) +; CHECK: .seh_endproc diff --git a/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll b/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll index 52e094b5417..0cab17f9de8 100644 --- a/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll +++ b/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll @@ -445,9 +445,9 @@ if.end: ; preds = %for.body, %if.else ; CHECK-NEXT: xorl %eax, %eax ; CHECK-NEXT: %esi, %edi ; CHECK-NEXT: %esi, %edx +; CHECK-NEXT: %esi, %ecx ; CHECK-NEXT: %esi, %r8d ; CHECK-NEXT: %esi, %r9d -; CHECK-NEXT: %esi, %ecx ; CHECK-NEXT: callq _someVariadicFunc ; CHECK-NEXT: movl %eax, %esi ; CHECK-NEXT: shll $3, %esi |