forked from llvm/clangir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattribute.cir
25 lines (24 loc) · 940 Bytes
/
attribute.cir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: cir-opt %s -split-input-file -allow-unregistered-dialect -verify-diagnostics | FileCheck %s
cir.func @float_attrs_pass() {
"test.float_attrs"() {
// CHECK: float_attr = #cir.fp<2.000000e+00> : !cir.float
float_attr = #cir.fp<2.> : !cir.float
} : () -> ()
"test.float_attrs"() {
// CHECK: float_attr = #cir.fp<-2.000000e+00> : !cir.float
float_attr = #cir.fp<-2.> : !cir.float
} : () -> ()
"test.float_attrs"() {
// CHECK: float_attr = #cir.fp<2.000000e+00> : !cir.double
float_attr = #cir.fp<2.> : !cir.double
} : () -> ()
"test.float_attrs"() {
// CHECK: float_attr = #cir.fp<2.000000e+00> : !cir.long_double<!cir.f80>
float_attr = #cir.fp<2.> : !cir.long_double<!cir.f80>
} : () -> ()
"test.float_attrs"() {
// CHECK: float_attr = #cir.fp<2.000000e+00> : !cir.long_double<!cir.double>
float_attr = #cir.fp<2.> : !cir.long_double<!cir.double>
} : () -> ()
cir.return
}