File: pr13249.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (27 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; RUN: llc < %s -mtriple armv7--linux-gnueabi

define arm_aapcscc i8* @__strtok_r_1c(i8* %arg, i8 signext %arg1, i8** nocapture %arg2) nounwind {
bb:
  br label %bb3

bb3:                                              ; preds = %bb3, %bb
  %tmp = phi i8* [ %tmp5, %bb3 ], [ %arg, %bb ]
  %tmp4 = load i8, i8* %tmp, align 1
  %tmp5 = getelementptr inbounds i8, i8* %tmp, i32 1
  br i1 undef, label %bb3, label %bb7

bb7:                                              ; preds = %bb13, %bb3
  %tmp8 = phi i8 [ %tmp14, %bb13 ], [ %tmp4, %bb3 ]
  %tmp9 = phi i8* [ %tmp12, %bb13 ], [ %tmp, %bb3 ]
  %tmp10 = icmp ne i8 %tmp8, %arg1
  %tmp12 = getelementptr inbounds i8, i8* %tmp9, i32 1
  br i1 %tmp10, label %bb13, label %bb15

bb13:                                             ; preds = %bb7
  %tmp14 = load i8, i8* %tmp12, align 1
  br label %bb7

bb15:                                             ; preds = %bb7
  store i8* %tmp9, i8** %arg2, align 4
  ret i8* %tmp
}