~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/cases/invokebitcast.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
; ModuleID = '/dev/shm/tmp/src.cpp.o'
2
2
; Just test for compilation here
3
 
target datalayout = "e-p:32:32:32-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-f80:32:32-f128:128:128-n8:16:32"
4
 
target triple = "i386-pc-linux-gnu"
 
3
target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-p:32:32:32-v128:32:32"
 
4
target triple = "le32-unknown-nacl"
5
5
 
6
6
%struct.CPU_Regs = type { [8 x %union.GenReg32] }
7
7
%union.GenReg32 = type { [1 x i32] }
16
16
  %0 = alloca i32                                 ; [#uses=2]
17
17
  %"alloca point" = bitcast i32 0 to i32          ; [#uses=0]
18
18
  %1 = load i32* bitcast (i32* getelementptr inbounds (%struct.CPU_Regs* @cpu_regs, i32 0, i32 0, i32 1, i32 0, i32 0) to i32*), align 2 ; [#uses=1]
19
 
  store i16 %1, i16* bitcast (%struct.CPU_Regs* @cpu_regs to i16*), align 2
 
19
  %s = trunc i32 %1 to i16
 
20
  store i16 %s, i16* bitcast (%struct.CPU_Regs* @cpu_regs to i16*), align 2
20
21
  %2 = call i32 @puts(i8* getelementptr inbounds ([14 x i8]* @.str, i32 0, i32 0)) ; [#uses=0]
21
22
  store i32 0, i32* %0, align 4
22
23
  %3 = load i32* %0, align 4                      ; [#uses=1]