| 1 |
// Test that tco tool preserves incoming llvm.data_layout and creates a |
| 2 |
// related dlti.dl_spec attribute. This tests a weird datalayout where |
| 3 |
// i64 would be 128 bit aligned. |
| 4 |
// RUN: tco -emit-fir %s | FileCheck %s |
| 5 |
|
| 6 |
module attributes {llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:128-i128:128-f80:128-n8:16:32:64-S128"} { |
| 7 |
} |
| 8 |
// CHECK: module attributes { |
| 9 |
// CHECK-SAME: dlti.dl_spec = #dlti.dl_spec< |
| 10 |
// ... |
| 11 |
// CHECK-SAME: i64 = dense<128> : vector<2xi64>, |
| 12 |
// ... |
| 13 |
// CHECK-SAME: llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:128-i128:128-f80:128-n8:16:32:64-S128" |