File: 2009-08-04-RegScavengerAssert-2.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 (33 lines) | stat: -rw-r--r-- 1,353 bytes parent folder | download | duplicates (28)
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
28
29
30
31
32
33
; RUN: llc < %s -mtriple=arm-linux-gnueabi
; PR4528

target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64"
target triple = "armv6-elf"

define i32 @file_read_actor(i32* nocapture %desc, i32* %page, i32 %offset, i32 %size) nounwind optsize {
entry:
	br i1 undef, label %fault_in_pages_writeable.exit, label %bb5.i

bb5.i:		; preds = %entry
	%asmtmp.i = tail call i32 asm sideeffect "1:\09strbt\09$1,[$2]\0A2:\0A\09.section .fixup,\22ax\22\0A\09.align\092\0A3:\09mov\09$0, $3\0A\09b\092b\0A\09.previous\0A\09.section __ex_table,\22a\22\0A\09.align\093\0A\09.long\091b, 3b\0A\09.previous", "=r,r,r,i,0,~{cc}"(i8 0, i32 undef, i32 -14, i32 0) nounwind		; <i32> [#uses=1]
	%0 = icmp eq i32 %asmtmp.i, 0		; <i1> [#uses=1]
	br i1 %0, label %bb6.i, label %fault_in_pages_writeable.exit

bb6.i:		; preds = %bb5.i
	br i1 undef, label %fault_in_pages_writeable.exit, label %bb7.i

bb7.i:		; preds = %bb6.i
	unreachable

fault_in_pages_writeable.exit:		; preds = %bb6.i, %bb5.i, %entry
	br i1 undef, label %bb2, label %bb3

bb2:		; preds = %fault_in_pages_writeable.exit
	unreachable

bb3:		; preds = %fault_in_pages_writeable.exit
	%1 = tail call  i32 @__copy_to_user(i8* undef, i8* undef, i32 undef) nounwind		; <i32> [#uses=0]
	unreachable
}

declare i32 @__copy_to_user(i8*, i8*, i32)