diff options
author | Tim Northover <tnorthover@apple.com> | 2013-06-01 09:55:14 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-06-01 09:55:14 +0000 |
commit | 85c622d6b6633c19d2729e82453c6c7f56ee7cd9 (patch) | |
tree | 7926a5dac9bd3ca0f95366bf9e0f7aea89a84253 /test/CodeGen | |
parent | 72ad17c48c15562fe31c65f6daa09c83f42860c1 (diff) | |
download | llvm-85c622d6b6633c19d2729e82453c6c7f56ee7cd9.tar.gz llvm-85c622d6b6633c19d2729e82453c6c7f56ee7cd9.tar.bz2 llvm-85c622d6b6633c19d2729e82453c6c7f56ee7cd9.tar.xz |
X86: change MOV64ri64i32 into MOV32ri64
The MOV64ri64i32 instruction required hacky MCInst lowering because it
was allocated as setting a GR64, but the eventual instruction ("movl")
only set a GR32. This converts it into a so-called "MOV32ri64" which
still accepts a (appropriate) 64-bit immediate but defines a GR32.
This is then converted to the full GR64 by a SUBREG_TO_REG operation,
thus keeping everyone happy.
This fixes a typo in the opcode field of the original patch, which
should make the legact JIT work again (& adds test for that problem).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/abi-isel.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/CodeGen/X86/abi-isel.ll b/test/CodeGen/X86/abi-isel.ll index 658ccaa71d..955fc62904 100644 --- a/test/CodeGen/X86/abi-isel.ll +++ b/test/CodeGen/X86/abi-isel.ll @@ -6629,8 +6629,8 @@ entry: ; LINUX-32-PIC-NEXT: ret ; LINUX-64-PIC: bam02: -; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]] -; LINUX-64-PIC-NEXT: movl $262144, %eax +; LINUX-64-PIC: movl $262144, %eax +; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]] ; LINUX-64-PIC-NEXT: addq ([[RCX]]), %rax ; LINUX-64-PIC-NEXT: ret @@ -6655,20 +6655,20 @@ entry: ; DARWIN-32-PIC-NEXT: ret ; DARWIN-64-STATIC: _bam02: -; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]] -; DARWIN-64-STATIC-NEXT: movl $262144, %eax +; DARWIN-64-STATIC: movl $262144, %eax +; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]] ; DARWIN-64-STATIC-NEXT: addq ([[RCX]]), %rax ; DARWIN-64-STATIC-NEXT: ret ; DARWIN-64-DYNAMIC: _bam02: -; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]] -; DARWIN-64-DYNAMIC-NEXT: movl $262144, %eax +; DARWIN-64-DYNAMIC: movl $262144, %eax +; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]] ; DARWIN-64-DYNAMIC-NEXT: addq ([[RCX]]), %rax ; DARWIN-64-DYNAMIC-NEXT: ret ; DARWIN-64-PIC: _bam02: -; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]] -; DARWIN-64-PIC-NEXT: movl $262144, %eax +; DARWIN-64-PIC: movl $262144, %eax +; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]] ; DARWIN-64-PIC-NEXT: addq ([[RCX]]), %rax ; DARWIN-64-PIC-NEXT: ret } @@ -6791,8 +6791,8 @@ entry: ; LINUX-32-PIC-NEXT: ret ; LINUX-64-PIC: bam05: -; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]] -; LINUX-64-PIC-NEXT: movl $262144, %eax +; LINUX-64-PIC: movl $262144, %eax +; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]] ; LINUX-64-PIC-NEXT: addq ([[RCX]]), %rax ; LINUX-64-PIC-NEXT: ret |