brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 6a6856d Raw
32 lines · plain
1; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-neon,-fpregs | FileCheck --check-prefix=NONEON-NOVFP %s2; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-neon | FileCheck --check-prefix=NONEON %s3; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-fpregs | FileCheck --check-prefix=NOVFP %s4; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-neon,+vfp2 | FileCheck --check-prefix=NONEON-VFP %s5 6; Check no NEON instructions are selected when feature is disabled.7define void @neonop(ptr nocapture readonly %a, ptr nocapture %b) #0 {8  %wide.load = load <2 x i64>, ptr %a, align 89  ; NONEON-NOVFP-NOT: vld1.6410  ; NONEON-NOT: vld1.6411  %add = add <2 x i64> %wide.load, %wide.load12  ; NONEON-NOVFP-NOT: vadd.i6413  ; NONEON-NOT: vadd.i6414  store <2 x i64> %add, ptr %b, align 815  ; NONEON-NOVFP-NOT: vst1.6416  ; NONEON-NOT: vst1.6417  ret void18}19 20; Likewise with VFP instructions.21define double @fpmult(double %a, double %b) {22  %res = fmul double %a, %b23  ; NONEON-NOVFP-NOT: vmov24  ; NONEON-NOVFP-NOT: vmul.f6425  ; NOVFP-NOT: vmov26  ; NOVFP-NOT: vmul.f6427  ; NONEON-VFP: vmov28  ; NONEON-VFP: vmul.f6429  ret double %res30}31 32