• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s | FileCheck %s
2
3; This test checks default lowering of the intrinsics operating floating point
4; values. MSP430 is used as a target in this test because it does not have
5; native FP support, so it won't get custom lowering for these intrinsics.
6;
7; REQUIRES: msp430-registered-target
8
9target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16"
10target triple = "msp430---elf"
11
12
13define float @roundeven_01(float %x) {
14entry:
15  %res = call float @llvm.roundeven.f32(float %x)
16  ret float %res
17}
18; CHECK-LABEL: roundeven_01:
19; CHECK: call #roundeven
20
21declare float @llvm.roundeven.f32(float %x)
22