Bill Wendling | c61b506 | 2010-10-12 22:08:41 +0000 | [diff] [blame^] | 1 | ;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 | |
| 9 | define arm_aapcscc float @f1(float %a, float %b) nounwind { |
| 10 | entry: |
| 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 | |
| 17 | define arm_aapcscc double @f2(double %a, double %b) nounwind { |
| 18 | entry: |
| 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 | } |