Skip to content

Commit 3bf4257

Browse files
committed
[flang] Update f128 tests
Update test that require flang-supports-f128-math after #126929.
1 parent 70b994b commit 3bf4257

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

flang/test/Lower/common-block.f90

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
subroutine s0
1515
common // a0, b0
1616

17-
! CHECK: call void @_QPs(ptr @__BLNK__, ptr getelementptr (i8, ptr @__BLNK__, i64 4))
17+
! CHECK: call void @_QPs(ptr @__BLNK__, ptr getelementptr inbounds nuw (i8, ptr @__BLNK__, i64 4))
1818
call s(a0, b0)
1919
end subroutine s0
2020

@@ -23,15 +23,15 @@ subroutine s1
2323
common /x/ a1, b1
2424
data a1 /1.0/, b1 /2.0/
2525

26-
! CHECK: call void @_QPs(ptr @x_, ptr getelementptr (i8, ptr @x_, i64 4))
26+
! CHECK: call void @_QPs(ptr @x_, ptr getelementptr inbounds nuw (i8, ptr @x_, i64 4))
2727
call s(a1, b1)
2828
end subroutine s1
2929

3030
! CHECK-LABEL: _QPs2
3131
subroutine s2
3232
common /y/ a2, b2, c2
3333

34-
! CHECK: call void @_QPs(ptr @y_, ptr getelementptr (i8, ptr @y_, i64 4))
34+
! CHECK: call void @_QPs(ptr @y_, ptr getelementptr inbounds nuw (i8, ptr @y_, i64 4))
3535
call s(a2, b2)
3636
end subroutine s2
3737

@@ -58,7 +58,7 @@ subroutine s4
5858
use mod_with_common
5959
! CHECK: load i32, ptr @c_in_mod_
6060
print *, i
61-
! CHECK: load i32, ptr getelementptr (i8, ptr @c_in_mod_, i64 4)
61+
! CHECK: load i32, ptr getelementptr inbounds nuw (i8, ptr @c_in_mod_, i64 4)
6262
print *, j
6363
end subroutine s4
6464

flang/test/Lower/real-descriptors.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ subroutine test_kind16(x16, c16)
7878
complex(kind=kind16) :: c16
7979

8080
read(in,*) x16
81-
! CHECK-KIND16: insertvalue { ptr, i64, i32, i8, i8, i8, i8 } { ptr undef, i64 ptrtoint (ptr getelementptr (fp128, ptr null, i32 1) to i64), i32 {{[0-9]*}}, i8 0, i8 31, i8 0, i8 0 }, ptr %{{[0-9]*}}, 0
81+
! CHECK-KIND16: insertvalue { ptr, i64, i32, i8, i8, i8, i8 } { ptr undef, i64 16, i32 {{[0-9]*}}, i8 0, i8 31, i8 0, i8 0 }, ptr %{{[0-9]*}}, 0
8282
! CHECK-KIND16: call i1 @_FortranAioOutputDescriptor(ptr %{{[0-9]*}}, ptr %{{[0-9]*}})
8383
print "(z32)", x16
8484

8585
read(in,*) c16
86-
! CHECK-KIND16: insertvalue { ptr, i64, i32, i8, i8, i8, i8 } { ptr undef, i64 ptrtoint (ptr getelementptr ({ fp128, fp128 }, ptr null, i32 1) to i64), i32 {{[0-9]*}}, i8 0, i8 38, i8 0, i8 0 }, ptr %{{[0-9]*}}, 0
86+
! CHECK-KIND16: insertvalue { ptr, i64, i32, i8, i8, i8, i8 } { ptr undef, i64 32, i32 {{[0-9]*}}, i8 0, i8 38, i8 0, i8 0 }, ptr %{{[0-9]*}}, 0
8787
! CHECK-KIND16: call i1 @_FortranAioOutputDescriptor(ptr %{{[0-9]*}}, ptr %{{[0-9]*}})
8888
print "(z32,' ',z32)", c16
8989
end subroutine

0 commit comments

Comments
 (0)