39 lines · plain
1; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - \2; RUN: | FileCheck %s -check-prefix=VFP23 4; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - \5; RUN: | FileCheck %s -check-prefix=NFP06 7; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - \8; RUN: | FileCheck %s -check-prefix=CORTEXA89 10; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 --denormal-fp-math=preserve-sign %s -o - \11; RUN: | FileCheck %s -check-prefix=CORTEXA8U12 13; RUN: llc -mtriple=arm-darwin -mcpu=cortex-a8 %s -o - \14; RUN: | FileCheck %s -check-prefix=CORTEXA8U15 16; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 %s -o - \17; RUN: | FileCheck %s -check-prefix=CORTEXA918 19define float @test(float %a, float %b) {20entry:21 %0 = fadd float %a, %b22 ret float %023}24 25; VFP2-LABEL: test:26; VFP2: vadd.f32 s27 28; NFP1-LABEL: test:29; NFP1: vadd.f32 d30; NFP0-LABEL: test:31; NFP0: vadd.f32 s32 33; CORTEXA8-LABEL: test:34; CORTEXA8: vadd.f32 s35; CORTEXA8U-LABEL: test:36; CORTEXA8U: vadd.f32 d37; CORTEXA9-LABEL: test:38; CORTEXA9: vadd.f32 s39