Skip to content

Commit a1409b1

Browse files
committed
Simplify the test to check the first part of the floating point only
1 parent d13f2d0 commit a1409b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/CIR/func-simple.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ bool boolfunc() { return true; }
6060

6161
float floatfunc() { return 42.42f; }
6262
// CHECK: cir.func @floatfunc() -> !cir.float {
63-
// CHECK: %0 = cir.const #cir.fp<4.242000e+01> : !cir.float
63+
// CHECK: %0 = cir.const #cir.fp<4.242
6464
// CHECK: cir.return %0 : !cir.float
6565
// CHECK: }
6666

6767
double doublefunc() { return 42.42; }
6868
// CHECK: cir.func @doublefunc() -> !cir.double {
69-
// CHECK: %0 = cir.const #cir.fp<4.242000e+01> : !cir.double
69+
// CHECK: %0 = cir.const #cir.fp<4.242
7070
// CHECK: cir.return %0 : !cir.double
7171
// CHECK: }

0 commit comments

Comments
 (0)