mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
c0948366f6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33259 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
768 B
LLVM
24 lines
768 B
LLVM
; RUN: llvm-as %s -o - | llvm-dis > %t.ll
|
|
; RUN: diff %t.ll %s.out
|
|
|
|
; test 33 bits
|
|
;
|
|
%b = constant i33 add(i33 8589934591, i33 1)
|
|
%c = constant i33 add(i33 8589934591, i33 8589934591)
|
|
%d = constant i33 add(i33 8589934584, i33 8)
|
|
%e = constant i33 sub(i33 0 , i33 1)
|
|
%f = constant i33 sub(i33 0 , i33 8589934591)
|
|
%g = constant i33 sub(i33 2 , i33 8589934591)
|
|
|
|
%h = constant i33 shl(i33 1 , i8 33)
|
|
%i = constant i33 shl(i33 1 , i8 32)
|
|
%j = constant i33 lshr(i33 8589934591 , i8 32)
|
|
%k = constant i33 lshr(i33 8589934591 , i8 33)
|
|
%l = constant i33 ashr(i33 8589934591 , i8 32)
|
|
%m = constant i33 ashr(i33 8589934591 , i8 33)
|
|
|
|
%n = constant i33 mul(i33 8589934591, i33 2)
|
|
%o = constant i33 trunc( i34 8589934592 to i33 )
|
|
%p = constant i33 trunc( i34 8589934591 to i33 )
|
|
|