Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s |
Chris Lattner | 363a6df | 2007-04-08 22:22:53 +0000 | [diff] [blame] | 2 | ; PR1314 |
| 3 | |
| 4 | target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" |
| 5 | target triple = "x86_64-unknown-linux-gnu" |
| 6 | %struct.CycleCount = type { i64, i64 } |
| 7 | %struct.bc_struct = type { i32, i32, i32, i32, %struct.bc_struct*, i8*, i8* } |
| 8 | @_programStartTime = external global %struct.CycleCount ; <%struct.CycleCount*> [#uses=1] |
| 9 | |
Evan Cheng | 7999791 | 2009-09-23 18:20:27 +0000 | [diff] [blame^] | 10 | define fastcc i32 @bc_divide(%struct.bc_struct* %n1, %struct.bc_struct* %n2, %struct.bc_struct** %quot, i32 %scale) nounwind { |
Chris Lattner | 363a6df | 2007-04-08 22:22:53 +0000 | [diff] [blame] | 11 | entry: |
Chris Lattner | 827a1f4 | 2007-04-28 05:20:26 +0000 | [diff] [blame] | 12 | %tmp7.i46 = tail call i64 asm sideeffect ".byte 0x0f,0x31", "={dx},=*{ax},~{dirflag},~{fpsr},~{flags}"( i64* getelementptr (%struct.CycleCount* @_programStartTime, i32 0, i32 1) ) ; <i64> [#uses=0] |
Chris Lattner | 363a6df | 2007-04-08 22:22:53 +0000 | [diff] [blame] | 13 | %tmp221 = sdiv i32 10, 0 ; <i32> [#uses=1] |
| 14 | tail call fastcc void @_one_mult( i8* null, i32 0, i32 %tmp221, i8* null ) |
| 15 | ret i32 0 |
| 16 | } |
| 17 | |
| 18 | declare fastcc void @_one_mult(i8*, i32, i32, i8*) |