1 ; RUN: llc -mtriple=aarch64-apple-darwin -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple=aarch64-apple-darwin -fast-isel -fast-isel-abort=2 -verify-machineinstrs < %s | FileCheck %s
5 define <8 x i8> @add_v8i8_rr(<8 x i8> %a, <8 x i8> %b) {
7 ; CHECK: add.8b v0, v0, v1
8 %1 = add <8 x i8> %a, %b
12 define <16 x i8> @add_v16i8_rr(<16 x i8> %a, <16 x i8> %b) {
14 ; CHECK: add.16b v0, v0, v1
15 %1 = add <16 x i8> %a, %b
19 define <4 x i16> @add_v4i16_rr(<4 x i16> %a, <4 x i16> %b) {
21 ; CHECK: add.4h v0, v0, v1
22 %1 = add <4 x i16> %a, %b
26 define <8 x i16> @add_v8i16_rr(<8 x i16> %a, <8 x i16> %b) {
28 ; CHECK: add.8h v0, v0, v1
29 %1 = add <8 x i16> %a, %b
33 define <2 x i32> @add_v2i32_rr(<2 x i32> %a, <2 x i32> %b) {
35 ; CHECK: add.2s v0, v0, v1
36 %1 = add <2 x i32> %a, %b
40 define <4 x i32> @add_v4i32_rr(<4 x i32> %a, <4 x i32> %b) {
42 ; CHECK: add.4s v0, v0, v1
43 %1 = add <4 x i32> %a, %b
47 define <2 x i64> @add_v2i64_rr(<2 x i64> %a, <2 x i64> %b) {
49 ; CHECK: add.2d v0, v0, v1
50 %1 = add <2 x i64> %a, %b
54 ; Vector Floating-point Add
55 define <2 x float> @add_v2f32_rr(<2 x float> %a, <2 x float> %b) {
57 ; CHECK: fadd.2s v0, v0, v1
58 %1 = fadd <2 x float> %a, %b
62 define <4 x float> @add_v4f32_rr(<4 x float> %a, <4 x float> %b) {
64 ; CHECK: fadd.4s v0, v0, v1
65 %1 = fadd <4 x float> %a, %b
69 define <2 x double> @add_v2f64_rr(<2 x double> %a, <2 x double> %b) {
71 ; CHECK: fadd.2d v0, v0, v1
72 %1 = fadd <2 x double> %a, %b