1 ; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-neon,-fpregs | FileCheck --check-prefix=NONEON-NOVFP %s
2 ; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-neon | FileCheck --check-prefix=NONEON %s
3 ; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-fpregs | FileCheck --check-prefix=NOVFP %s
4 ; RUN: llc < %s -mtriple=armv7-none-gnueabi -mattr=-neon,+vfp2 | FileCheck --check-prefix=NONEON-VFP %s
6 ; Check no NEON instructions are selected when feature is disabled.
7 define void @neonop(ptr nocapture readonly %a, ptr nocapture %b) #0 {
8 %wide.load = load <2 x i64>, ptr %a, align 8
9 ; NONEON-NOVFP-NOT: vld1.64
11 %add = add <2 x i64> %wide.load, %wide.load
12 ; NONEON-NOVFP-NOT: vadd.i64
13 ; NONEON-NOT: vadd.i64
14 store <2 x i64> %add, ptr %b, align 8
15 ; NONEON-NOVFP-NOT: vst1.64
20 ; Likewise with VFP instructions.
21 define double @fpmult(double %a, double %b) {
22 %res = fmul double %a, %b
23 ; NONEON-NOVFP-NOT: vmov
24 ; NONEON-NOVFP-NOT: vmul.f64
28 ; NONEON-VFP: vmul.f64