Implement aarch64 neon instruction set AdvSIMD (3V elem).
[oota-llvm.git] / test / CodeGen / AArch64 / neon-diagnostics.ll
1 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s
2
3 define <2 x float> @test_vfma_lane_f32(<2 x float> %a, <2 x float> %b, <2 x float> %v) {
4 ; CHECK: test_vfma_lane_f32:
5 ; CHECK: fmul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[{{[0-9]+}}]
6 ; CHECK: fadd {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.2s
7 entry:
8   %shuffle = shufflevector <2 x float> %v, <2 x float> undef, <2 x i32> <i32 1, i32 1>
9   %mul = fmul <2 x float> %shuffle, %b
10   %add = fadd <2 x float> %mul, %a
11   ret <2 x float> %add
12 }
13