brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 36c3cf3 Raw
40 lines · plain
1// RUN: mlir-opt --convert-to-llvm="filter-dialects=func dynamic=true" --split-input-file %s2 3 4// CHECK-LABEL: llvm.func @test_default_index5// CHECK-SAME: (%{{.*}}: i64) -> i646func.func private @test_default_index(%arg0: index) -> index7 8// -----9 10// CHECK-LABEL: module attributes {dlti.dl_spec = #dlti.dl_spec<11// CHECK-SAME: #dlti.dl_entry<index, 32>12// CHECK-SAME: >}13module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<index, 32>>} {14  // CHECK-LABEL: llvm.func @test_32bit_index15  // CHECK-SAME: (%{{.*}}: i32) -> i3216  func.func private @test_32bit_index(%arg0: index) -> index17}18 19// -----20 21// CHECK-LABEL: module attributes {dlti.dl_spec = #dlti.dl_spec<22// CHECK-SAME: #dlti.dl_entry<index, 64>23// CHECK-SAME: >}24module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<index, 64>>} {25  // CHECK-LABEL: llvm.func @test_64bit_index26  // CHECK-SAME: (%{{.*}}: i64) -> i6427  func.func private @test_64bit_index(%arg0: index) -> index28}29 30// -----31 32// CHECK-LABEL: module attributes {dlti.dl_spec = #dlti.dl_spec<33// CHECK-SAME: #dlti.dl_entry<index, 16>34// CHECK-SAME: >}35module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<index, 16>>} {36  // CHECK-LABEL: llvm.func @test_16bit_index37  // CHECK-SAME: (%{{.*}}: i16) -> i1638  func.func private @test_16bit_index(%arg0: index) -> index39}40