// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -target-feature +v9.7a -target-feature +f16mm -target-feature +f16f32mm \ // RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa | FileCheck %s // REQUIRES: aarch64-registered-target #include // CHECK-LABEL: define dso_local <8 x half> @test_vmmlaq_f16_f16( // CHECK-SAME: <8 x half> noundef [[ACC:%.*]], <8 x half> noundef [[A:%.*]], <8 x half> noundef [[B:%.*]]) #[[ATTR0:[0-9]+]] { // CHECK-NEXT: [[ENTRY:.*:]] // CHECK-NEXT: [[TMP0:%.*]] = bitcast <8 x half> [[ACC]] to <8 x i16> // CHECK-NEXT: [[TMP1:%.*]] = bitcast <8 x half> [[A]] to <8 x i16> // CHECK-NEXT: [[TMP2:%.*]] = bitcast <8 x half> [[B]] to <8 x i16> // CHECK-NEXT: [[TMP3:%.*]] = bitcast <8 x i16> [[TMP0]] to <16 x i8> // CHECK-NEXT: [[TMP4:%.*]] = bitcast <8 x i16> [[TMP1]] to <16 x i8> // CHECK-NEXT: [[TMP5:%.*]] = bitcast <8 x i16> [[TMP2]] to <16 x i8> // CHECK-NEXT: [[FMMLA_I:%.*]] = bitcast <16 x i8> [[TMP3]] to <8 x half> // CHECK-NEXT: [[FMMLA1_I:%.*]] = bitcast <16 x i8> [[TMP4]] to <8 x half> // CHECK-NEXT: [[FMMLA2_I:%.*]] = bitcast <16 x i8> [[TMP5]] to <8 x half> // CHECK-NEXT: [[FMMLA3_I:%.*]] = call <8 x half> @llvm.aarch64.neon.fmmla.v8f16.v8f16(<8 x half> [[FMMLA_I]], <8 x half> [[FMMLA1_I]], <8 x half> [[FMMLA2_I]]) // CHECK-NEXT: ret <8 x half> [[FMMLA3_I]] // float16x8_t test_vmmlaq_f16_f16(float16x8_t acc, float16x8_t a, float16x8_t b) { return vmmlaq_f16_f16(acc, a, b); } // CHECK-LABEL: define dso_local <4 x float> @test_vmmlaq_f32_f16( // CHECK-SAME: <4 x float> noundef [[ACC:%.*]], <8 x half> noundef [[A:%.*]], <8 x half> noundef [[B:%.*]]) #[[ATTR0]] { // CHECK-NEXT: [[ENTRY:.*:]] // CHECK-NEXT: [[TMP0:%.*]] = bitcast <4 x float> [[ACC]] to <4 x i32> // CHECK-NEXT: [[TMP1:%.*]] = bitcast <8 x half> [[A]] to <8 x i16> // CHECK-NEXT: [[TMP2:%.*]] = bitcast <8 x half> [[B]] to <8 x i16> // CHECK-NEXT: [[TMP3:%.*]] = bitcast <4 x i32> [[TMP0]] to <16 x i8> // CHECK-NEXT: [[TMP4:%.*]] = bitcast <8 x i16> [[TMP1]] to <16 x i8> // CHECK-NEXT: [[TMP5:%.*]] = bitcast <8 x i16> [[TMP2]] to <16 x i8> // CHECK-NEXT: [[FMMLA_I:%.*]] = bitcast <16 x i8> [[TMP3]] to <4 x float> // CHECK-NEXT: [[FMMLA1_I:%.*]] = bitcast <16 x i8> [[TMP4]] to <8 x half> // CHECK-NEXT: [[FMMLA2_I:%.*]] = bitcast <16 x i8> [[TMP5]] to <8 x half> // CHECK-NEXT: [[FMMLA3_I:%.*]] = call <4 x float> @llvm.aarch64.neon.fmmla.v4f32.v8f16(<4 x float> [[FMMLA_I]], <8 x half> [[FMMLA1_I]], <8 x half> [[FMMLA2_I]]) // CHECK-NEXT: ret <4 x float> [[FMMLA3_I]] // float32x4_t test_vmmlaq_f32_f16(float32x4_t acc, float16x8_t a, float16x8_t b) { return vmmlaq_f32_f16(acc, a, b); }