annotate clang/test/CodeGen/rounding-math.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 // RUN: %clang_cc1 -S -emit-llvm -triple i386-linux -Wno-unknown-pragmas -frounding-math %s -o - | FileCheck %s
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 constexpr float func_01(float x, float y) {
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 return x + y;
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 }
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 float V1 = func_01(1.0F, 0x0.000001p0F);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 float V2 = 1.0F + 0x0.000001p0F;
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 float V3 = func_01(1.0F, 2.0F);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 // CHECK: @V1 = {{.*}}global float 1.000000e+00, align 4
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 // CHECK: @V2 = {{.*}}global float 1.000000e+00, align 4
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 // CHECK: @V3 = {{.*}}global float 3.000000e+00, align 4