Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / lirasm / tests / mulov_xxy.in
1 ; 1073741824 * 2 >= 2^31, and will overflow.
2 big = immi 1073741824
3 two = immi 2
4
5 ; Because 'big' isn't used after mul, it _may_ get allocated to the same
6 ; register as 'res'. This is the case with the ARM back-end, and that is where
7 ; this test is important as rX=rX*rY isn't possible on ARMv5 without some
8 ; trickery.
9 res = mulxovi big two    ; overflow, so we exit here
10
11 ; Store 'res' so it isn't dead.
12 m = allocp 4
13 sti res m 0
14 x                       ; we don't exit here