flang/test/Fir/tco-default-datalayout.fir
raw| 1 | // Test that tco tool sets a target independent data layout when none is |
| 2 | // provided. LLVM default data layout aligns i64 with 32 bits. |
| 3 | // RUN: tco -emit-fir %s | FileCheck %s |
| 4 | |
| 5 | module { |
| 6 | } |
| 7 | // CHECK: module attributes { |
| 8 | // CHECK-SAME: dlti.dl_spec = #dlti.dl_spec< |
| 9 | // ... |
| 10 | // CHECK-SAME: i64 = dense<[32, 64]> : vector<2xi64>, |
| 11 | // ... |
| 12 | // CHECK-SAME: llvm.data_layout = "" |