brintos

brintos / llvm-project-archived public Read only

0
0
Text · 983 B · 16b1115 Raw
21 lines · plain
1! RUN: %flang_fc1 -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s2! RUN: %flang_fc1 -finit-global-zero -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s3! RUN: %flang_fc1 -fno-init-global-zero -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-NO-ZERO-INIT %s4! RUN: bbc -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s5! RUN: bbc -finit-global-zero -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s6! RUN: bbc -finit-global-zero=false -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-NO-ZERO-INIT %s7 8module zeroInitM19  real :: x10end module zeroInitM111 12!CHECK-DEFAULT: fir.global @_QMzeroinitm1Ex : f32 {13!CHECK-DEFAULT:   %[[UNDEF:.*]] = fir.zero_bits f3214!CHECK-DEFAULT:   fir.has_value %[[UNDEF]] : f3215!CHECK-DEFAULT: }16 17!CHECK-NO-ZERO-INIT: fir.global @_QMzeroinitm1Ex : f32 {18!CHECK-NO-ZERO-INIT:   %[[UNDEF:.*]] = fir.undefined f3219!CHECK-NO-ZERO-INIT:   fir.has_value %[[UNDEF]] : f3220!CHECK-NO-ZERO-INIT: }21