Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGen/builtins-msp430.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
rev | line source |
---|---|
150 | 1 // REQUIRES: msp430-registered-target |
2 // RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-llvm %s -o - | FileCheck %s | |
3 | |
4 int test_builtin_flt_rounds() { | |
5 // CHECK: [[V0:[%A-Za-z0-9.]+]] = call i32 @llvm.flt.rounds() | |
6 // CHECK-DAG: [[V1:[%A-Za-z0-9.]+]] = trunc i32 [[V0]] to i16 | |
7 // CHECK-DAG: ret i16 [[V1]] | |
8 return __builtin_flt_rounds(); | |
9 } | |
10 |