From 9ae33fe396e5f7c050a60980e00a99435533c02f Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 29 Oct 2010 20:23:45 +0000 Subject: [PATCH] Convert this test to .s form. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117704 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/neon-reverse-encoding.ll | 85 ---------------------------- test/MC/ARM/neon-reverse-encoding.s | 26 +++++++++ 2 files changed, 26 insertions(+), 85 deletions(-) delete mode 100644 test/MC/ARM/neon-reverse-encoding.ll create mode 100644 test/MC/ARM/neon-reverse-encoding.s diff --git a/test/MC/ARM/neon-reverse-encoding.ll b/test/MC/ARM/neon-reverse-encoding.ll deleted file mode 100644 index 722294871aa..00000000000 --- a/test/MC/ARM/neon-reverse-encoding.ll +++ /dev/null @@ -1,85 +0,0 @@ -; RUN: llc -show-mc-encoding -march=arm -mcpu=cortex-a8 -mattr=+neon < %s | FileCheck %s - -define <8 x i8> @test_vrev64D8(<8 x i8>* %A) nounwind { - %tmp1 = load <8 x i8>* %A -; CHECK: vrev64.8 d16, d16 @ encoding: [0x20,0x00,0xf0,0xf3] - %tmp2 = shufflevector <8 x i8> %tmp1, <8 x i8> undef, <8 x i32> - ret <8 x i8> %tmp2 -} - -define <4 x i16> @test_vrev64D16(<4 x i16>* %A) nounwind { - %tmp1 = load <4 x i16>* %A -; CHECK: vrev64.16 d16, d16 @ encoding: [0x20,0x00,0xf4,0xf3] - %tmp2 = shufflevector <4 x i16> %tmp1, <4 x i16> undef, <4 x i32> - ret <4 x i16> %tmp2 -} - -define <2 x i32> @test_vrev64D32(<2 x i32>* %A) nounwind { - %tmp1 = load <2 x i32>* %A -; CHECK: vrev64.32 d16, d16 @ encoding: [0x20,0x00,0xf8,0xf3] - %tmp2 = shufflevector <2 x i32> %tmp1, <2 x i32> undef, <2 x i32> - ret <2 x i32> %tmp2 -} - -define <16 x i8> @test_vrev64Q8(<16 x i8>* %A) nounwind { - %tmp1 = load <16 x i8>* %A -; CHECK: vrev64.8 q8, q8 @ encoding: [0x60,0x00,0xf0,0xf3] - %tmp2 = shufflevector <16 x i8> %tmp1, <16 x i8> undef, <16 x i32> - ret <16 x i8> %tmp2 -} - -define <8 x i16> @test_vrev64Q16(<8 x i16>* %A) nounwind { - %tmp1 = load <8 x i16>* %A -; CHECK: vrev64.16 q8, q8 @ encoding: [0x60,0x00,0xf4,0xf3] - %tmp2 = shufflevector <8 x i16> %tmp1, <8 x i16> undef, <8 x i32> - ret <8 x i16> %tmp2 -} - -define <4 x i32> @test_vrev64Q32(<4 x i32>* %A) nounwind { - %tmp1 = load <4 x i32>* %A -; CHECK: vrev64.32 q8, q8 @ encoding: [0x60,0x00,0xf8,0xf3] - %tmp2 = shufflevector <4 x i32> %tmp1, <4 x i32> undef, <4 x i32> - ret <4 x i32> %tmp2 -} - -define <8 x i8> @test_vrev32D8(<8 x i8>* %A) nounwind { - %tmp1 = load <8 x i8>* %A -; CHECK: vrev32.8 d16, d16 @ encoding: [0xa0,0x00,0xf0,0xf3] - %tmp2 = shufflevector <8 x i8> %tmp1, <8 x i8> undef, <8 x i32> - ret <8 x i8> %tmp2 -} - -define <4 x i16> @test_vrev32D16(<4 x i16>* %A) nounwind { - %tmp1 = load <4 x i16>* %A -; CHECK: vrev32.16 d16, d16 @ encoding: [0xa0,0x00,0xf4,0xf3] - %tmp2 = shufflevector <4 x i16> %tmp1, <4 x i16> undef, <4 x i32> - ret <4 x i16> %tmp2 -} - -define <16 x i8> @test_vrev32Q8(<16 x i8>* %A) nounwind { - %tmp1 = load <16 x i8>* %A -; CHECK: vrev32.8 q8, q8 @ encoding: [0xe0,0x00,0xf0,0xf3] - %tmp2 = shufflevector <16 x i8> %tmp1, <16 x i8> undef, <16 x i32> - ret <16 x i8> %tmp2 -} - -define <8 x i16> @test_vrev32Q16(<8 x i16>* %A) nounwind { - %tmp1 = load <8 x i16>* %A -; CHECK: vrev32.16 q8, q8 @ encoding: [0xe0,0x00,0xf4,0xf3] - %tmp2 = shufflevector <8 x i16> %tmp1, <8 x i16> undef, <8 x i32> - ret <8 x i16> %tmp2 -} - -define <8 x i8> @test_vrev16D8(<8 x i8>* %A) nounwind { - %tmp1 = load <8 x i8>* %A -; CHECK: vrev16.8 d16, d16 @ encoding: [0x20,0x01,0xf0,0xf3] - %tmp2 = shufflevector <8 x i8> %tmp1, <8 x i8> undef, <8 x i32> - ret <8 x i8> %tmp2 -} - -define <16 x i8> @test_vrev16Q8(<16 x i8>* %A) nounwind { - %tmp1 = load <16 x i8>* %A -; CHECK: vrev16.8 q8, q8 @ encoding: [0x60,0x01,0xf0,0xf3] - %tmp2 = shufflevector <16 x i8> %tmp1, <16 x i8> undef, <16 x i32> - ret <16 x i8> %tmp2 -} diff --git a/test/MC/ARM/neon-reverse-encoding.s b/test/MC/ARM/neon-reverse-encoding.s new file mode 100644 index 00000000000..a4c713d562e --- /dev/null +++ b/test/MC/ARM/neon-reverse-encoding.s @@ -0,0 +1,26 @@ +// RUN: llvm-mc -triple arm-unknown-unkown -show-encoding < %s | FileCheck %s + +// CHECK: vrev64.8 d16, d16 @ encoding: [0x20,0x00,0xf0,0xf3] + vrev64.8 d16, d16 +// CHECK: vrev64.16 d16, d16 @ encoding: [0x20,0x00,0xf4,0xf3] + vrev64.16 d16, d16 +// CHECK: vrev64.32 d16, d16 @ encoding: [0x20,0x00,0xf8,0xf3] + vrev64.32 d16, d16 +// CHECK: vrev64.8 q8, q8 @ encoding: [0x60,0x00,0xf0,0xf3] + vrev64.8 q8, q8 +// CHECK: vrev64.16 q8, q8 @ encoding: [0x60,0x00,0xf4,0xf3] + vrev64.16 q8, q8 +// CHECK: vrev64.32 q8, q8 @ encoding: [0x60,0x00,0xf8,0xf3] + vrev64.32 q8, q8 +// CHECK: vrev32.8 d16, d16 @ encoding: [0xa0,0x00,0xf0,0xf3] + vrev32.8 d16, d16 +// CHECK: vrev32.16 d16, d16 @ encoding: [0xa0,0x00,0xf4,0xf3] + vrev32.16 d16, d16 +// CHECK: vrev32.8 q8, q8 @ encoding: [0xe0,0x00,0xf0,0xf3] + vrev32.8 q8, q8 +// CHECK: vrev32.16 q8, q8 @ encoding: [0xe0,0x00,0xf4,0xf3] + vrev32.16 q8, q8 +// CHECK: vrev16.8 d16, d16 @ encoding: [0x20,0x01,0xf0,0xf3] + vrev16.8 d16, d16 +// CHECK: vrev16.8 q8, q8 @ encoding: [0x60,0x01,0xf0,0xf3] + vrev16.8 q8, q8