blob: 755ec072d1f62755dccd2634e8d1ade0e1ac5b6c [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
9define arm_aapcscc float @f1(float %a, float %b) nounwind {
10entry:
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
17define arm_aapcscc double @f2(double %a, double %b) nounwind {
18entry:
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}