@@ -98,10 +98,10 @@ def test_const_array(self):
9898 self .assertTrue (np .all (A == CONST1D + 1 ))
9999
100100 if not ENABLE_CUDASIM :
101- self .assertIn (
102- "ld.const.f64" ,
101+ self .assertRegex (
103102 jcuconst .inspect_asm (sig ),
104- "as we're adding to it, load as a double" ,
103+ r"ld\.const\.[bf]64" ,
104+ "load as a 64-bit value" ,
105105 )
106106
107107 def test_const_empty (self ):
@@ -124,10 +124,10 @@ def test_const_array_2d(self):
124124 self .assertTrue (np .all (A == CONST2D ))
125125
126126 if not ENABLE_CUDASIM :
127- self .assertIn (
128- "ld.const.u32" ,
127+ self .assertRegex (
129128 jcuconst2d .inspect_asm (sig ),
130- "load the ints as ints" ,
129+ r"ld\.const\.[bu]32" ,
130+ "load as a 32-bit value" ,
131131 )
132132
133133 def test_const_array_3d (self ):
@@ -139,9 +139,9 @@ def test_const_array_3d(self):
139139
140140 if not ENABLE_CUDASIM :
141141 asm = jcuconst3d .inspect_asm (sig )
142- complex_load = "ld.const.v2.f32 "
143- description = "Load the complex as a vector of 2x f32 "
144- self .assertIn ( complex_load , asm , description )
142+ complex_load = r "ld\ .const\ .v2\.[bf]32 "
143+ description = "Load the complex as a vector of 2x 32-bits "
144+ self .assertRegex ( asm , complex_load , description )
145145
146146 def test_const_record_empty (self ):
147147 jcuconstRecEmpty = cuda .jit ("void(int64[:])" )(cuconstRecEmpty )
0 commit comments