Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / builtins-msp430.c
blobc9d7615014b78f63345a631a2a574d539a30a0e1
1 // REQUIRES: msp430-registered-target
2 // RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-llvm %s -o - | FileCheck %s
4 int test_builtin_flt_rounds() {
5 // CHECK: [[V0:[%A-Za-z0-9.]+]] = call i32 @llvm.get.rounding()
6 // CHECK-DAG: [[V1:[%A-Za-z0-9.]+]] = trunc i32 [[V0]] to i16
7 // CHECK-DAG: ret i16 [[V1]]
8 return __builtin_flt_rounds();