mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
5d6365c80c
This is mostly achieved by providing the correct register class manually, because getRegClassFor always returns the GPR*AllRegClass for MVT::i32 and MVT::i64. Also cleanup the code to use the FastEmitInst_* method whenever possible. This makes sure that the operands' register class is properly constrained. For all the remaining cases this adds the missing constrainOperandRegClass calls for each operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216225 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
1.3 KiB
LLVM
24 lines
1.3 KiB
LLVM
; RUN: llc -O0 -march=arm64 -aarch64-neon-syntax=apple -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; The following 2 test cases test shufflevector with beginning UNDEF mask.
|
|
define <8 x i16> @test_vext_undef_traverse(<8 x i16> %in) {
|
|
;CHECK-LABEL: test_vext_undef_traverse:
|
|
;CHECK: {{ext.16b.*v0, #4}}
|
|
%vext = shufflevector <8 x i16> <i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 0, i16 0>, <8 x i16> %in, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 6, i32 7, i32 8, i32 9>
|
|
ret <8 x i16> %vext
|
|
}
|
|
|
|
define <8 x i16> @test_vext_undef_traverse2(<8 x i16> %in) {
|
|
;CHECK-LABEL: test_vext_undef_traverse2:
|
|
;CHECK: {{ext.16b.*v0, #6}}
|
|
%vext = shufflevector <8 x i16> %in, <8 x i16> <i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef>, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 0, i32 1, i32 2>
|
|
ret <8 x i16> %vext
|
|
}
|
|
|
|
define <8 x i8> @test_vext_undef_traverse3(<8 x i8> %in) {
|
|
;CHECK-LABEL: test_vext_undef_traverse3:
|
|
;CHECK: {{ext.8b.*v0, #6}}
|
|
%vext = shufflevector <8 x i8> %in, <8 x i8> <i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef>, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 2, i32 3, i32 4, i32 5>
|
|
ret <8 x i8> %vext
|
|
}
|