brintos

brintos / llvm-project-archived public Read only

0
0
Text · 763 B · ea3fa33 Raw
26 lines · plain
1// Test no-struct-conversion of target-rewrite pass.2// RUN: fir-opt -target-rewrite="no-struct-conversion" %s | FileCheck %s3 4func.func @test(%arg0: !fir.type<t{i:i32}>) {5  return6}7 8func.func @test_call(%arg0: !fir.type<t{i:i32}>) {9  fir.call @test(%arg0) : (!fir.type<t{i:i32}>) -> ()10  return11}12 13func.func @test_addr_off() {14  %0 = fir.address_of(@test) : (!fir.type<t{i:i32}>) -> ()15  return16}17 18// CHECK-LABEL:  func.func @test(%{{.*}}: !fir.type<t{i:i32}>) {19 20// CHECK-LABEL:  func.func @test_call(21// CHECK-SAME:                        %[[ARG0:.*]]: !fir.type<t{i:i32}>) {22// CHECK:    fir.call @test(%[[ARG0]]) : (!fir.type<t{i:i32}>) -> ()23 24// CHECK-LABEL:  func.func @test_addr_off() {25// CHECK:    fir.address_of(@test) : (!fir.type<t{i:i32}>) -> ()26