| 1 |
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s |
| 2 |
|
| 3 |
declare void @cxa_atexit_check_1(ptr) |
| 4 |
|
| 5 |
; TODO: KB: ORiginal test case was just checking it compiles; is this worth keeping? |
| 6 |
; CHECK: check_cxa_atexit: |
| 7 |
; CHECK: blr |
| 8 |
|
| 9 |
define i32 @check_cxa_atexit(ptr %cxa_atexit, ptr %cxa_finalize) { |
| 10 |
entry: |
| 11 |
%tmp7 = call i32 null( ptr @cxa_atexit_check_1, ptr null, ptr null ) ; <i32> [#uses=0] |
| 12 |
br i1 false, label %cond_true, label %cond_next |
| 13 |
|
| 14 |
cond_true: ; preds = %entry |
| 15 |
ret i32 0 |
| 16 |
|
| 17 |
cond_next: ; preds = %entry |
| 18 |
ret i32 0 |
| 19 |
} |