blob: 475a9c69caa53b9ed65cbbfc64dfa42189857019 [file] [log] [blame]
Bill Wendlingc61b5062010-10-12 22:08:41 +00001;RUN: llc -mtriple=armv7-apple-darwin -mcpu=cortex-a8 -mattr=-neonfp -show-mc-encoding < %s | FileCheck %s
2
3
4; FIXME: Once the ARM integrated assembler is up and going, these sorts of tests
5; should run on .s source files rather than using llc to generate the
6; assembly.
7
8
Bill Wendling1b8d1342010-10-12 22:24:10 +00009define float @f1(float %a, float %b) nounwind readnone {
Bill Wendlingc61b5062010-10-12 22:08:41 +000010entry:
11; CHECK: f1
12; CHECK: vadd.f32 s0, s1, s0 @ encoding: [0x80,0x0a,0x30,0xee]
13 %add = fadd float %a, %b
14 ret float %add
15}
16
Bill Wendling1b8d1342010-10-12 22:24:10 +000017define double @f2(double %a, double %b) nounwind readnone {
Bill Wendlingc61b5062010-10-12 22:08:41 +000018entry:
19; CHECK: f2
20; CHECK: vadd.f64 d16, d17, d16 @ encoding: [0xa0,0x0b,0x71,0xee]
21 %add = fadd double %a, %b
22 ret double %add
23}