[InstCombine] Add fptrunc of max test (NFC)
[llvm-project.git] / flang / test / Evaluate / signed-mult-opd.f90
blob75b533de80e3b720ee7f7eb42adff5361ff9764b
1 ! RUN: %python %S/test_folding.py %s %flang_fc1
2 module m
3 integer, parameter :: j = 2
4 ! standard cases
5 logical, parameter :: test_1 = -j**2 == -4
6 logical, parameter :: test_2 = 4-j**2 == 0
7 ! extension cases
8 logical, parameter :: test_3 = 4+-j**2 == 0 ! not 8
9 logical, parameter :: test_4 = 2*-j**2 == -8 ! not 8
10 logical, parameter :: test_5 = -j**2+-j**2 == -8 ! not 8
11 logical, parameter :: test_6 = j**2*-j**2 == -16 ! not 16
12 end