[AArch64][GlobalISel] Legalize G_INTRINSIC_TRUNC
authorJessica Paquette <jpaquette@apple.com>
Tue, 23 Apr 2019 18:20:44 +0000 (18:20 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 23 Apr 2019 18:20:44 +0000 (18:20 +0000)
commit56342642a087f2cd8b11b84a123f7e5151322cdc
treefafd4b7ac2129871cfb2fee748774fe76e0eb219
parent1670772adc0ebe647aa8cda20e0b7dada3cf3e85
[AArch64][GlobalISel] Legalize G_INTRINSIC_TRUNC

Same patch as G_FCEIL etc.

Add the missing switch case in widenScalar, add G_INTRINSIC_TRUNC to the correct
rule in AArch64LegalizerInfo.cpp, and add a test.

llvm-svn: 359021
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-intrinsic-trunc.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir