mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 22:42:46 +02:00
6b7c9ae783
The old implementation assumed LP64 which is broken for x32. Specifically, the MOVE8rm_NOREX and MOVE8mr_NOREX, when selected, would cause a 'Cannot emit physreg copy instruction' error message to be reported. This patch also enable the h-register*ll tests for x32. Differential Revision: http://reviews.llvm.org/D12336 Patch by João Porto llvm-svn: 247058
14 lines
360 B
LLVM
14 lines
360 B
LLVM
; RUN: llc < %s -march=x86 | grep mov | count 1
|
|
; RUN: llc < %s -march=x86-64 | grep mov | count 1
|
|
; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | grep mov | count 1
|
|
|
|
define zeroext i8 @foo() nounwind ssp {
|
|
entry:
|
|
%0 = tail call zeroext i16 (...) @bar() nounwind
|
|
%1 = lshr i16 %0, 8
|
|
%2 = trunc i16 %1 to i8
|
|
ret i8 %2
|
|
}
|
|
|
|
declare zeroext i16 @bar(...)
|