mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
GlobalISel: mark G_FPEXT legal from float to double.
llvm-svn: 279845
This commit is contained in:
parent
2f9c75fe2f
commit
4f35a13881
@ -114,6 +114,9 @@ AArch64MachineLegalizer::AArch64MachineLegalizer() {
|
||||
setAction({G_ANYEXT, 1, Ty}, Legal);
|
||||
}
|
||||
|
||||
setAction({G_FPEXT, s64}, Legal);
|
||||
setAction({G_FPEXT, 1, s32}, Legal);
|
||||
|
||||
// Truncations
|
||||
for (auto Ty : { s16, s32 })
|
||||
setAction({G_FPTRUNC, Ty}, Legal);
|
||||
|
@ -29,6 +29,8 @@ registers:
|
||||
- { id: 14, class: _ }
|
||||
- { id: 15, class: _ }
|
||||
- { id: 16, class: _ }
|
||||
- { id: 17, class: _ }
|
||||
- { id: 18, class: _ }
|
||||
body: |
|
||||
bb.0.entry:
|
||||
liveins: %x0, %x1, %x2, %x3
|
||||
@ -70,4 +72,8 @@ body: |
|
||||
; CHECK: %16(16) = G_ANYEXT { s16, s8 } %2
|
||||
%15(8) = G_ZEXT { s8, s1 } %1
|
||||
%16(16) = G_ANYEXT { s16, s8 } %2
|
||||
|
||||
; CHECK: %18(64) = G_FPEXT { s64, s32 } %17
|
||||
%17(32) = G_TRUNC { s32, s64 } %0
|
||||
%18(64) = G_FPEXT { s64, s32 } %17
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user