1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -S -infer-address-spaces %s | FileCheck %s
4 define amdgpu_kernel void @subclass_data_assert() {
5 ; CHECK-LABEL: @subclass_data_assert(
7 ; CHECK-NEXT: unreachable
8 ; CHECK: strlen.while11:
9 ; CHECK-NEXT: [[I:%.*]] = getelementptr i8, i8* [[I]], i64 1
10 ; CHECK-NEXT: [[I1:%.*]] = load i8, i8* [[I]], align 1
11 ; CHECK-NEXT: [[I2:%.*]] = icmp eq i8 [[I1]], 0
12 ; CHECK-NEXT: br i1 [[I2]], label [[STRLEN_WHILE_DONE12:%.*]], label [[STRLEN_WHILE11:%.*]]
13 ; CHECK: strlen.while.done12:
14 ; CHECK-NEXT: ret void
19 strlen.while11: ; preds = %strlen.while11
20 %i = getelementptr i8, i8* %i, i64 1
21 %i1 = load i8, i8* %i, align 1
22 %i2 = icmp eq i8 %i1, 0
23 br i1 %i2, label %strlen.while.done12, label %strlen.while11
25 strlen.while.done12: ; preds = %strlen.while11