• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4define amdgpu_kernel void @subclass_data_assert() {
5; CHECK-LABEL: @subclass_data_assert(
6; CHECK-NEXT:  entry:
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
15;
16entry:
17  unreachable
18
19strlen.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
24
25strlen.while.done12:                              ; preds = %strlen.while11
26  ret void
27}
28